You are here

function menu_local_tabs in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/menu.inc \menu_local_tabs()

Returns a renderable element for the primary and secondary tabs.

Related topics

File

core/includes/menu.inc, line 146
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();
}