On this page
function menu_get_router
menu_get_router()
Gets the menu router.
Related topics
File
- includes/menu.inc, line 2843
- API for the Drupal menu system.
Code
function menu_get_router() {
// Check first if we have it in memory already.
$menu = _menu_router_cache();
if (empty($menu)) {
list($menu, $masks) = menu_router_build();
}
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_get_router/7.x