function biblio_bibtex_entity_view in Bibliography Module 7.2
Implements hook_entity_view().
File
- modules/
bibtexParse/ biblio_bibtex.module, line 99
Code
function biblio_bibtex_entity_view($entity, $type, $view_mode, $langcode) {
if ($type == 'biblio') {
$biblio = $entity;
switch ($view_mode) {
case 'full':
case 'teaser':
$links = biblio_bibtex_biblio_export_link($biblio->bid);
$biblio->content['links']['biblio_bibtex'] = array(
'#links' => $links,
'#attributes' => array(
'class' => array(
'links',
'inline',
),
),
);
}
}
}