Definition

theme_menu_local_tasks()
drupal-cvs/includes/menu.inc, line 1487

Description

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

Related topics

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.
Menu systemDefine the navigation menus, and route page requests to code based on URLs.

Code

<?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;
}
?>