function hook_hook_info_alter
hook_hook_info_alter(&$hooks)
Alter information from hook_hook_info().
Parameters
$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.
Related topics
File
- modules/system/system.api.php, line 55
- Hooks provided by Drupal core and the System module.
Code
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'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_hook_info_alter/7.x