You are here

function biblio_rtf_node_view in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 modules/rtf/biblio_rtf.module \biblio_rtf_node_view()

File

modules/rtf/biblio_rtf.module, line 27

Code

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