function _menu_router_cache in Drupal 6
Same name and namespace in other branches
- 7 includes/menu.inc \_menu_router_cache()
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 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.
File
- 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;
}