function _biblio_sort_tab in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio.pages.inc \_biblio_sort_tab()
- 7 includes/biblio_theme.inc \_biblio_sort_tab()
- 7.2 includes/biblio.pages.inc \_biblio_sort_tab()
1 call to _biblio_sort_tab()
File
- ./
biblio.pages.inc, line 589
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['attributes']['class'] ? 'class="active"' : '';
$link = l($text, $tab['path'], $tab);
return "<li {$class} >" . str_replace('class="active"', $class, $link) . '</li>';
}
else {
return $tab['pfx'] . l($tab['text'], $tab['path'], $tab) . $tab['arrow'] . $tab['sfx'];
}
return;
}