Commit e8fb3cea authored by catch's avatar catch
Browse files

Issue #1892574 by sun: Remove hook_hook_info_alter().

parent cc93aedb
......@@ -463,13 +463,6 @@ protected function getHookInfo() {
}
}
}
// 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;
}
......
......@@ -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.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment