function hook_menu_alter


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_menu_alter(&$items)
cle7 system.api.php hook_menu_alter(&$items)
elmsmedia7 system.api.php hook_menu_alter(&$items)
icor7 system.api.php hook_menu_alter(&$items)
meedjum_blog7 system.api.php hook_menu_alter(&$items)
mooc7 system.api.php hook_menu_alter(&$items)

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 $items array is one item returned by a module from hook_menu. Additional items may be added, or existing items altered.


$items: Associative array of menu router definitions returned from hook_menu().

Related topics

32 functions implement hook_menu_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

admin_menu_menu_alter in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_menu_alter().
advanced_help_menu_alter in sites/all/modules/ulmus/advanced_help/advanced_help.module
Implements hook_menu_alter().
book_copy_menu_alter in sites/all/modules/elmsln_contrib/book_copy/book_copy.module
Implements hook_menu_alter().
comment_menu_alter in modules/comment/comment.module
Implements hook_menu_alter().
data_entity_menu_alter in sites/all/modules/local_contrib/data/data_entity/data_entity.module
Implements hook_menu_alter().

... See full list

1 invocation of hook_menu_alter()
menu_router_build in includes/
Collects and alters the menu definitions.


modules/system/system.api.php, line 1292
Hooks provided by Drupal core and the System module.


function hook_menu_alter(&$items) {
  // Example - disable the page at node/add
  $items['node/add']['access callback'] = FALSE;