You are here

function theme_quicktabs_tabs in Quick Tabs 7.2

Same name and namespace in other branches
  1. 5 quicktabs.module \theme_quicktabs_tabs()
  2. 6.3 quicktabs.module \theme_quicktabs_tabs()
  3. 6 quicktabs.module \theme_quicktabs_tabs()
  4. 6.2 quicktabs.module \theme_quicktabs_tabs()
1 theme call to theme_quicktabs_tabs()
quicktabs_render in ./quicktabs.module
Render quicktabs.

File

./quicktabs.module, line 513

Code

function theme_quicktabs_tabs($vars) {
  $output = '<ul class="quicktabs_tabs quicktabs-style-' . $vars['tabset']['#options']['style'] . '">';
  foreach ($vars['tabset']['tablinks'] as $i => $tab) {
    if (is_array($tab)) {
      $active = $i == $vars['tabset']['#options']['active'] ? ' class="active"' : '';
      $output .= '<li' . $active . '>' . drupal_render($tab) . '</li>';
    }
  }
  $output .= '</ul>';
  return $output;
}