You are here

function theme_menu_local_tasks in Drupal 5

Same name and namespace in other branches
  1. 4 includes/menu.inc \theme_menu_local_tasks()
  2. 6 includes/menu.inc \theme_menu_local_tasks()
  3. 7 includes/menu.inc \theme_menu_local_tasks()

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

Related topics

3 theme calls to theme_menu_local_tasks()
chameleon_page in themes/chameleon/chameleon.theme
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php…
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.

File

includes/menu.inc, line 740
API for the Drupal menu system.

Code

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