theme_menu_local_tasks
Definition
theme_menu_local_tasks()
includes/menu.inc, line 1441
Description
Returns the rendered local tasks. The default implementation renders them as tabs.
Related topics
| 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. |
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;
}
?> 