function menu_get_active_trail


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_get_active_trail()
cle7 menu_get_active_trail()
elmsmedia7 menu_get_active_trail()
icor7 menu_get_active_trail()
meedjum_blog7 menu_get_active_trail()
mooc7 menu_get_active_trail()

Gets the active trail (path to root menu root) of the current page.

If a trail is supplied to menu_set_active_trail(), that value is returned. If a trail is not supplied to menu_set_active_trail(), the path to the current page is calculated and returned. The calculated trail is also saved as a static value for use by subsequent calls to menu_get_active_trail().

Return value

Path to menu root of the current page, as an array of menu link items, starting with the site's home page. Each link item is an associative array with the following components:

  • title: Title of the item.
  • href: Drupal path of the item.
  • localized_options: Options for passing into the l() function.
  • type: A menu type constant, such as MENU_DEFAULT_LOCAL_TASK, or 0 to indicate it's not really in the menu (used for the home page item).

Related topics

9 calls to menu_get_active_trail()
context_condition_menu::execute in sites/all/modules/ulmus/context/plugins/
Override of execute().
menu_get_active_breadcrumb in includes/
Gets the breadcrumb for the current page, as determined by the active trail.
menu_get_active_title in includes/
Gets the title of the current page, as determined by the active trail.
menu_test_custom_403_404_callback in modules/simpletest/tests/menu_test.module
Callback for our custom 403 and 404 pages.
menu_test_init in modules/simpletest/tests/menu_test.module
Implements hook_init().

... See full list


includes/, line 2553
API for the Drupal menu system.


function menu_get_active_trail() {
  return menu_set_active_trail();



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.