function theme_menu_local_tasks

×

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 theme_menu_local_tasks(&$variables)
cle7 menu.inc theme_menu_local_tasks(&$variables)
elmsmedia7 menu.inc theme_menu_local_tasks(&$variables)
icor7 menu.inc theme_menu_local_tasks(&$variables)
meedjum_blog7 menu.inc theme_menu_local_tasks(&$variables)
mooc7 menu.inc theme_menu_local_tasks(&$variables)

Returns HTML for primary and secondary local tasks.

Parameters

$variables: An associative array containing:

  • primary: (optional) An array of local tasks (tabs).
  • secondary: (optional) An array of local tasks (tabs).

See also

menu_local_tasks()

Related topics

1 theme call to theme_menu_local_tasks()
aurora_preprocess_block in sites/all/themes/ulmus/aurora/template.php
6 string references to the theme hook from theme_menu_local_tasks()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aurora_preprocess_block in sites/all/themes/ulmus/aurora/template.php
drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
garland_preprocess_page in themes/garland/template.php
Override or insert variables into the page template.
media_browser in sites/all/modules/ulmus/media/includes/media.browser.inc
Media browser page callback.
menu_local_tabs in includes/menu.inc
Returns a renderable element for the primary and secondary tabs.

... See full list

File

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

Code

function theme_menu_local_tasks(&$variables) {
  $output = '';

  if (!empty($variables['primary'])) {
    $variables['primary']['#prefix'] = '<h2 class="element-invisible">' . t('Primary tabs') . '</h2>';
    $variables['primary']['#prefix'] .= '<ul class="tabs primary">';
    $variables['primary']['#suffix'] = '</ul>';
    $output .= drupal_render($variables['primary']);
  }
  if (!empty($variables['secondary'])) {
    $variables['secondary']['#prefix'] = '<h2 class="element-invisible">' . t('Secondary tabs') . '</h2>';
    $variables['secondary']['#prefix'] .= '<ul class="tabs secondary">';
    $variables['secondary']['#suffix'] = '</ul>';
    $output .= drupal_render($variables['secondary']);
  }

  return $output;
}
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.