function menu_local_tabs

Returns a renderable element for the primary and secondary tabs.

Related topics

1 call to menu_local_tabs()
template_preprocess_page in drupal/core/includes/theme.inc
Prepares variables for the page template.

File

drupal/core/includes/menu.inc, line 2283
API for the Drupal menu system.

Code

function menu_local_tabs() {
  $build = array(
    '#theme' => 'menu_local_tasks',
    '#primary' => menu_primary_local_tasks(),
    '#secondary' => menu_secondary_local_tasks(),
  );
  return !empty($build['#primary']) || !empty($build['#secondary']) ? $build : array();
}