You are here

function biblio_pm_node_view in Bibliography Module 7

File

modules/pubmed/biblio_pm.module, line 415

Code

function biblio_pm_node_view($node, $view_mode, $langcode) {
  if ($node->type == 'biblio' && isset($node->biblio_pubmed_id)) {
    switch ($view_mode) {
      case 'full':
      case 'teaser':
        $node->content['links']['biblio_pubmed'] = array(
          '#links' => biblio_pm_biblio_lookup_link($node),
          '#attributes' => array(
            'class' => array(
              'links',
              'inline',
            ),
          ),
        );
    }
  }
}