theme_menu_local_tasks

  1. drupal
    1. 4.7
    2. 5
    3. 6 menu.inc
    4. 7 menu.inc
Versions
4.7 – 6 theme_menu_local_tasks()
7 theme_menu_local_tasks(&$variables)

Returns the rendered local tasks. The default implementation renders them as tabs.

Related topics

Code

includes/menu.inc, line 727

<?php
function theme_menu_local_tasks() {
  $output = '';

  if ($primary = menu_primary_local_tasks()) {
    $output .= "<ul class=\"tabs primary\">\n" . $primary . "</ul>\n";
  }
  if ($secondary = menu_secondary_local_tasks()) {
    $output .= "<ul class=\"tabs secondary\">\n" . $secondary . "</ul>\n";
  }

  return $output;
}
?>