_menu_router_cache

  1. drupal
    1. 6
    2. 7
Versions
6 – 7 _menu_router_cache($new_menu = NULL)

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

Related topics

▾ 3 functions call _menu_router_cache()

menu_get_router in drupal/includes/menu.inc
Get the menu router.
menu_router_build in drupal/includes/menu.inc
Collect and alter the menu definitions.
_menu_find_router_path in drupal/includes/menu.inc
Find the router path which will serve this path.

Code

drupal/includes/menu.inc, line 2638

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

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