You are here

function biblio_ris_node_view in Bibliography Module 7

File

modules/RIS/biblio_ris.module, line 169

Code

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