You are here

function theme_admin_tab in Admin 7.2

Same name and namespace in other branches
  1. 6.2 theme/theme.inc \theme_admin_tab()

Generate markup for an admin tab.

1 theme call to theme_admin_tab()
admin-toolbar.tpl.php in theme/admin-toolbar.tpl.php

File

theme/theme.inc, line 61

Code

function theme_admin_tab($variables) {
  $tab = $variables['tab'];
  $class = $variables['class'];
  $attr = isset($tab['attributes']) ? drupal_attributes($tab['attributes']) : '';
  $class .= !empty($tab['active']) ? ' admin-tab-active' : '';
  $title = filter_xss_admin($tab['title']);
  return "<div class='admin-tab {$class}'><span {$attr}>{$title}</span></div>";
}