function menu_local_tabs

Same name in other branches
  1. 8.9.x core/includes/menu.inc \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 includes/theme.inc
Preprocess variables for page.tpl.php

File

includes/menu.inc, line 2285

Code

function menu_local_tabs() {
    return array(
        '#theme' => 'menu_local_tasks',
        '#primary' => menu_primary_local_tasks(),
        '#secondary' => menu_secondary_local_tasks(),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.