function theme_biblio_author_link in Bibliography Module 6
Same name and namespace in other branches
- 6.2 includes/biblio_theme.inc \theme_biblio_author_link()
- 7 includes/biblio_theme.inc \theme_biblio_author_link()
- 7.2 includes/biblio.theme.inc \theme_biblio_author_link()
5 theme calls to theme_biblio_author_link()
- biblio_style_apa in ./
biblio_style_apa.inc - Apply a bibliographic style to the node
- biblio_style_cse in ./
biblio_style_cse.inc - theme_biblio_authors in ./
biblio_theme.inc - theme_biblio_format_authors in ./
biblio_theme.inc - theme_biblio_long in ./
biblio_theme.inc - DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function
File
- ./
biblio_theme.inc, line 567
Code
function theme_biblio_author_link($author) {
$base = variable_get('biblio_base', 'biblio');
$link_to_profile = variable_get('biblio_author_link_profile', 0);
$options = array();
$inline = $inline ? "/inline" : "";
if (isset($_GET['sort'])) {
$options['query']['sort'] = $_GET['sort'];
}
if (isset($_GET['order'])) {
$options['query']['order'] = $_GET['order'];
}
if (isset($author['drupal_uid']) && $author['drupal_uid'] > 0) {
$options['attributes']['class'] = 'biblio-local-author';
}
if ($link_to_profile && $author['drupal_uid']) {
return l(trim($author['name']), "user/" . $author['drupal_uid'] . "/{$base}");
}
else {
return l(trim($author['name']), "{$base}/author/" . $author['cid'] . $inline, $options);
}
return $html;
}