On this page
function _menu_router_cache
_menu_router_cache($new_menu = NULL)
Stores the menu router if we have it in memory.
Related topics
File
- includes/menu.inc, line 2831
- 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;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!menu.inc/function/_menu_router_cache/7.x