Issue #1892574 by sun: Remove hook_hook_info_alter().
parent
cc93aedb71
commit
e8fb3cea9c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue