Issue #1892574 by sun: Remove hook_hook_info_alter().

8.0.x
catch 2013-01-28 22:51:01 +00:00
parent cc93aedb71
commit e8fb3cea9c
2 changed files with 0 additions and 22 deletions

View File

@ -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;
}

View File

@ -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.
*