summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-29 04:47:31 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-29 04:47:31 +0000
commit269da037266e555c256d4e5f8ca82a64b452a37b (patch)
treea0b53b9d26790276412d31999edcb6b0e31d66a0
parent414911080da7f98ff206015662ec8a9af070a84b (diff)
downloadbrdo-269da037266e555c256d4e5f8ca82a64b452a37b.tar.gz
brdo-269da037266e555c256d4e5f8ca82a64b452a37b.tar.bz2
#777080 by jhodgdon: Fixed hook_hook_info_alter() is not documented.
-rw-r--r--modules/system/system.api.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index a0fc4c0f4..02cf2747a 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -32,6 +32,8 @@
* exists, and automatically load it when required.
*
* See system_hook_info() for all hook groups defined by Drupal core.
+ *
+ * @see hook_hook_info_alter().
*/
function hook_hook_info() {
$hooks['token_info'] = array(
@@ -44,6 +46,21 @@ function hook_hook_info() {
}
/**
+ * 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';
+}
+
+/**
* Inform the base system and the Field API about one or more entity types.
*
* Inform the system about one or more entity types (i.e., object types that