1 menu.inc menu_set_active_item($path)

Sets the active path, which determines which page is loaded.

Note that this may not have the desired effect unless invoked very early in the page load, such as during hook_boot(), or unless you call menu_execute_active_handler() to generate your page output.


$path: A Backdrop path - not a URL alias.

Related topics


core/includes/menu.inc, line 2510
API for the Backdrop menu system.


function menu_set_active_item($path) {
  $_GET['q'] = $path;
  // Since the active item has changed, the active menu trail may also be out
  // of date.