function _menu_router_cache

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

Helper function to store the menu router if we have it in memory.

Related topics

3 calls to _menu_router_cache()
menu_link_save in drupal-6.x/includes/menu.inc
Save a menu link.
menu_router_build in drupal-6.x/includes/menu.inc
Collect, alter and store the menu definitions.
_menu_find_router_path in drupal-6.x/includes/menu.inc
Find the router path which will serve this path.

File

drupal-6.x/includes/menu.inc, line 1750
API for the Drupal menu system.

Code

function _menu_router_cache($new_menu = NULL) {
  static $menu = NULL;

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