menu_set_item

Definition

menu_set_item($path, $router_item)
includes/menu.inc, line 282

Description

Replaces the statically cached item for a given path.

Parameters

$path The path.

$router_item The router item. Usually you take a router entry from menu_get_item and set it back either modified or to a different path. This lets you modify the navigation block, the page title, the breadcrumb and the page help in one call.

Related topics

Namesort iconDescription
Menu systemDefine the navigation menus, and route page requests to code based on URLs.

Code

<?php
function menu_set_item($path, $router_item) {
  menu_get_item($path, $router_item);
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.