You are here

function biblio_bibtex_node_view in Bibliography Module 7

File

modules/bibtexParse/biblio_bibtex.module, line 110

Code

function biblio_bibtex_node_view($node, $view_mode) {
  if ($node->type == 'biblio') {
    switch ($view_mode) {
      case 'full':
      case 'teaser':
        $links = biblio_bibtex_biblio_export_link($node->nid);
        $node->content['links']['biblio_bibtex'] = array(
          '#links' => $links,
          '#attributes' => array(
            'class' => array(
              'links',
              'inline',
            ),
          ),
        );
    }
  }
}