diff options
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 95fe9da69..db3d1e6ad 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1240,7 +1240,18 @@ function menu_get_active_menu_name() { return menu_set_active_menu_name(); } -function menu_set_active_item() { +/** + * Set the active path, which determines which page is loaded. + * + * @param $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. + */ +function menu_set_active_item($path) { + $_GET['q'] = $path; } /** |