function _menu_router_cache

7.x menu.inc _menu_router_cache($new_menu = NULL)
6.x menu.inc _menu_router_cache($new_menu = NULL)

Stores the menu router if we have it in memory.

Related topics

3 calls to _menu_router_cache()
menu_get_router in drupal-7.x/includes/menu.inc
Gets the menu router.
menu_router_build in drupal-7.x/includes/menu.inc
Collects and alters the menu definitions.
_menu_find_router_path in drupal-7.x/includes/menu.inc
Finds the router path which will serve this path.

File

drupal-7.x/includes/menu.inc, line 2771
API for the Drupal menu system.

Code

function _menu_router_cache($new_menu = NULL) {
  $menu = &drupal_static(__FUNCTION__);

  if (isset($new_menu)) {
    $menu = $new_menu;
  }
  return $menu;
}