_menu_router_cache

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 8 _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 includes/menu.inc
Get the menu router.
menu_router_build in includes/menu.inc
Collect and alter the menu definitions.
_menu_find_router_path in includes/menu.inc
Find the router path which will serve this path.

Code

includes/menu.inc, line 2705

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

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