Skip navigation
Help

_menu_router_cache

6 menu.inc _menu_router_cache($new_menu = NULL)
7 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()

File

drupal/includes/menu.inc, line 2640
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;
}