You are here

function biblio_ris_entity_view in Bibliography Module 7.2

File

modules/RIS/biblio_ris.module, line 136

Code

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