theme_menu_local_tasks()
drupal/includes/menu.inc, line 1977
Returns renderable local tasks.
| 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 = array();
if ($primary = menu_primary_local_tasks()) {
$primary['#prefix'] = '<ul class="tabs primary">';
$primary['#suffix'] = '</ul>';
$output[] = $primary;
}
if ($secondary = menu_secondary_local_tasks()) {
$secondary['#prefix'] = '<ul class="tabs secondary">';
$secondary['#suffix'] = '</ul>';
$output[] = $secondary;
}
return $output;
}