function biblio_view in Bibliography Module 5
Same name and namespace in other branches
- 6.2 biblio.module \biblio_view()
- 6 biblio.module \biblio_view()
- 7 biblio.module \biblio_view()
Implementation of hook_view().
This is a typical implementation that simply runs the node text through the output filters.
File
- ./
biblio.module, line 1889
Code
function biblio_view(&$node, $teaser = false, $page = false) {
theme('biblio_add_css');
if (strlen(trim($node->body))) {
$node = node_prepare($node, $teaser);
}
$style = variable_get('biblio_style', 'classic');
$base = variable_get('biblio_base', 'biblio');
switch (variable_get('biblio_node_layout', '0')) {
case 'orig':
case 'ft':
$node->content['body']['#value'] = theme('biblio_long', $node, $base, $style);
break;
case 'tabular':
default:
$node->content['body']['#value'] = biblio_show_node($node, $base, $teaser);
break;
}
if ($page) {
drupal_set_breadcrumb(array(
l(t('Home'), NULL),
l(drupal_ucfirst($base), $base),
));
}
return $node;
}