function menu_set_active_item


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 menu_set_active_item($path)
cle7 menu_set_active_item($path)
elmsmedia7 menu_set_active_item($path)
icor7 menu_set_active_item($path)
meedjum_blog7 menu_set_active_item($path)
mooc7 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 Drupal path - not a path alias.

Related topics

5 calls to menu_set_active_item()
bakery_user_page in sites/all/modules/ulmus/bakery/bakery.module
Access callback for path /user.
context_reaction_menu::menu_navigation_links in sites/all/modules/ulmus/context/plugins/
Wrapper around menu_navigation_links() that gives themers the option of building navigation links based on an active context trail.
ctools_export_ui::clone_page in sites/all/modules/ulmus/ctools/plugins/export_ui/ctools_export_ui.class.php
Main entry point to clone an item.
drupal_deliver_html_page in includes/
Packages and sends the result of a page callback to the browser as HTML.
user_page in modules/user/
Page callback: Displays the user page.


includes/, line 2340
API for the Drupal 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.



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.