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/api.elmsln.org/includes/bootstrap.inc).
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.

Parameters

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

Related topics

31 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().
cle_achievements_menu_alter in profiles/cle/modules/cle_custom/cle_achievements/cle_achievements.module
Implements hook_menu_alter().
comment_menu_alter in modules/comment/comment.module
Implements hook_menu_alter().

... See full list

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

File

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

Code

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

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.