function menu_set_active_item in Drupal 6
Same name and namespace in other branches
- 4 includes/menu.inc \menu_set_active_item()
- 5 includes/menu.inc \menu_set_active_item()
- 7 includes/menu.inc \menu_set_active_item()
Set the active path, which determines which page is loaded.
Parameters
$path: A Drupal path - not a path alias.
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.
Related topics
3 calls to menu_set_active_item()
- drupal_access_denied in includes/
common.inc - Generates a 403 error if the request is not allowed.
- drupal_not_found in includes/
common.inc - Generates a 404 error if the request can not be handled.
- user_page in modules/
user/ user.pages.inc - Access callback for path /user.
File
- includes/
menu.inc, line 1504 - API for the Drupal menu system.
Code
function menu_set_active_item($path) {
$_GET['q'] = $path;
}