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/api.elmsln.org/includes/bootstrap.inc).
cis7 menu.inc menu_set_active_item($path)
cle7 menu.inc menu_set_active_item($path)
elmsmedia7 menu.inc menu_set_active_item($path)
icor7 menu.inc menu_set_active_item($path)
meedjum_blog7 menu.inc menu_set_active_item($path)
mooc7 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.

Parameters

$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/context_reaction_menu.inc
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/common.inc
Packages and sends the result of a page callback to the browser as HTML.
user_page in modules/user/user.pages.inc
Page callback: Displays the user page.

File

includes/menu.inc, line 2340
API for the Drupal menu system.

Code

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.
  drupal_static_reset('menu_set_active_trail');
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.