_menu_router_cache

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_link_save in includes/menu.inc
Save a menu link.
menu_router_build in includes/menu.inc
Collect, alter and store 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 1732

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

  if (isset($new_menu)) {
    $menu = $new_menu;
  }
  return $menu;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.