summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-07 04:46:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-02-07 04:46:46 +0000
commit096978579bdf7bcbecc8ec7109aa031de8c3e970 (patch)
tree25dbdfcbe9b5ac5368892b45b95e688ecde07e1b
parent7842c3c14d042bfaa2bf2caf6a8ea8e5ec0583ad (diff)
downloadbrdo-096978579bdf7bcbecc8ec7109aa031de8c3e970.tar.gz
brdo-096978579bdf7bcbecc8ec7109aa031de8c3e970.tar.bz2
#357429 by fusedpro: Update the documentation of hook_menu_alter() to use 'items' rather than 'callbacks' to match hook_menu().
-rw-r--r--modules/menu/menu.api.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/menu/menu.api.php b/modules/menu/menu.api.php
index da1a36fc5..dfff6b476 100644
--- a/modules/menu/menu.api.php
+++ b/modules/menu/menu.api.php
@@ -88,18 +88,18 @@ function hook_menu() {
* Alter the data being saved to the {menu_router} table after hook_menu is invoked.
*
* This hook is invoked by menu_router_build(). The menu definitions are passed
- * in by reference. Each element of the $callbacks array is one item returned
+ * in by reference. Each element of the $items array is one item returned
* by a module from hook_menu. Additional items may be added, or existing items
* altered.
*
- * @param $callbacks
+ * @param $items
* Associative array of menu router definitions returned from hook_menu().
* @return
* None.
*/
-function hook_menu_alter(&$callbacks) {
+function hook_menu_alter(&$items) {
// Example - disable the page at node/add
- $callbacks['node/add']['access callback'] = FALSE;
+ $items['node/add']['access callback'] = FALSE;
}
/**