function context_reaction_menu::execute

cis7 context_reaction_menu.inc context_reaction_menu::execute(&$vars = NULL)
cle7 context_reaction_menu.inc context_reaction_menu::execute(&$vars = NULL)
elmsmedia7 context_reaction_menu.inc context_reaction_menu::execute(&$vars = NULL)
icor7 context_reaction_menu.inc context_reaction_menu::execute(&$vars = NULL)
meedjum_blog7 context_reaction_menu.inc context_reaction_menu::execute(&$vars = NULL)
mooc7 context_reaction_menu.inc context_reaction_menu::execute(&$vars = NULL)

If primary + secondary links are pointed at the same menu, provide contextual trailing by default.

1 method overrides context_reaction_menu::execute()
context_reaction_breadcrumb::execute in sites/all/modules/ulmus/context/plugins/context_reaction_breadcrumb.inc
Override of execute().

File

sites/all/modules/ulmus/context/plugins/context_reaction_menu.inc, line 56

Class

context_reaction_menu
Expose menu items as context reactions.

Code

function execute(&$vars = NULL) {
  if (variable_get('menu_main_links_source', 'main-menu') == variable_get('menu_secondary_links_source', 'user-menu')) {
    $vars['main_menu'] = theme_get_setting('toggle_main_menu') ? $this->menu_navigation_links(variable_get('menu_main_links_source', 'main-menu')) : $vars['main_menu'];
    $vars['secondary_menu'] = theme_get_setting('toggle_secondary_menu') ? $this->menu_navigation_links(variable_get('menu_secondary_links_source', 'secondary-links'), 1) : $vars['secondary_menu'];
  }

  $vars['main_menu'] = $this->menu_set_active($vars['main_menu']);
  $vars['secondary_menu'] = $this->menu_set_active($vars['secondary_menu']);
}
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.