hook_hook_info_alter

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 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

Code

modules/system/system.api.php, line 55

<?php
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';
}
?>