theme_menu_local_tasks()
drupal/includes/menu.inc, line 1487
Returns the rendered local tasks. The default implementation renders them as tabs.
| Name | Description |
|---|---|
| Default theme implementations | Functions and templates that present output to the user, and can be implemented by themes. |
| Menu system | Define the navigation menus, and route page requests to code based on URLs. |
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;
}