You are here

function biblio_xml_node_view in Bibliography Module 7.2

Same name and namespace in other branches
  1. 7 modules/endnote/biblio_xml.module \biblio_xml_node_view()

File

modules/endnote/biblio_xml.module, line 38

Code

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