You are here

function biblio_pm_entity_view in Bibliography Module 7.2

File

modules/pubmed/biblio_pm.module, line 281

Code

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