diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php index 14b4e721039..c45c1cd05c8 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php @@ -463,13 +463,6 @@ class ModuleHandler implements ModuleHandlerInterface { } } } - // We can't use $this->alter() for the same reason as above. - foreach ($this->moduleList as $module => $filename) { - $function = $module . '_hook_info_alter'; - if (function_exists($function)) { - $function($this->hookInfo); - } - } return $this->hookInfo; } diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php index 7e95a034787..d89d63b2692 100644 --- a/core/modules/system/system.api.php +++ b/core/modules/system/system.api.php @@ -46,21 +46,6 @@ function hook_hook_info() { return $hooks; } -/** - * Alter information from hook_hook_info(). - * - * @param $hooks - * Information gathered by module_hook_info() from other modules' - * implementations of hook_hook_info(). Alter this array directly. - * See hook_hook_info() for information on what this may contain. - */ -function hook_hook_info_alter(&$hooks) { - // Our module wants to completely override the core tokens, so make - // sure the core token hooks are not found. - $hooks['token_info']['group'] = 'mytokens'; - $hooks['tokens']['group'] = 'mytokens'; -} - /** * Define administrative paths. *