function _biblio_sort_tab in Bibliography Module 6.2
Same name and namespace in other branches
- 6 biblio.pages.inc \_biblio_sort_tab()
- 7 includes/biblio_theme.inc \_biblio_sort_tab()
- 7.2 includes/biblio.pages.inc \_biblio_sort_tab()
Page callback: Creates ...
Parameters
array $tab: An associative array with the following elements:
- text:
- arrow:
- attributes: An array with an optional class key.
bool $tabs: (optional)
Return value
string
1 call to _biblio_sort_tab()
- _biblio_sort_tabs in includes/
biblio.pages.inc
File
- includes/
biblio.pages.inc, line 640 - Functions in the biblio module related to filtering and page generation.
Code
function _biblio_sort_tab($tab, $tabs = FALSE) {
if ($tabs) {
$text = '<span class="a"><span class="b">' . $tab['text'] . $tab['arrow'] . '</span></span>';
$class = isset($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'];
}
}