You are here

function _biblio_sort_tab in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.pages.inc \_biblio_sort_tab()
  2. 6 biblio.pages.inc \_biblio_sort_tab()
  3. 7.2 includes/biblio.pages.inc \_biblio_sort_tab()
1 call to _biblio_sort_tab()
theme_biblio_sort_tabs in includes/biblio_theme.inc

File

includes/biblio_theme.inc, line 1414

Code

function _biblio_sort_tab($tab, $tabs = FALSE) {
  if ($tabs) {
    $text = '<span class="a"><span class="b">' . $tab['text'] . $tab['arrow'] . '</span></span>';
    $class = $tab['active'] ? 'class="active"' : '';
    $link = l($text, $tab['path'], $tab);
    return "<li {$class} >" . $link . '</li>';
  }
  else {
    return $tab['pfx'] . l($tab['text'], $tab['path'], $tab) . $tab['arrow'] . $tab['sfx'];
  }
}