menu_set_item
function menu_set_item
menu_set_item($path, $router_item)
Replaces the statically cached item for a given path.
Parameters
$path: The path.
$router_item: The router item. Usually a router entry from menu_get_item() is either modified or set to a different path. This allows the navigation block, the page title, the breadcrumb, and the page help to be modified in one call.
Related topics
File
- includes/menu.inc, line 433
- API for the Drupal menu system.
Code
function menu_set_item($path, $router_item) { menu_get_item($path, $router_item); }
© 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_set_item/7.x