theme_menu_local_tasks

Definition

theme_menu_local_tasks()
drupal/includes/menu.inc, line 633

Description

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

Related topics

Namesort iconDescription
Menu systemDefine the navigation menus, and route page requests to code based on URLs.
Themeable functionsFunctions that display HTML, and which can be customized by themes.

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