Skip navigation
Help

menu_get_router

7 menu.inc menu_get_router()

Get the menu router.

Related topics

2 calls to menu_get_router()

File

drupal/includes/menu.inc, line 2652
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;
}