You are here

function biblio_handler_field_export_link_endnote_xml::render in Bibliography Module 6.2

File

modules/endnote/views/biblio_handler_field_export_link_endnote_xml.inc, line 4

Class

biblio_handler_field_export_link_endnote_xml

Code

function render($values) {
  if (user_access('show export links')) {
    $base = variable_get('biblio_base', 'biblio');
    $nid = $this
      ->get_value($values, 'nid');
    $this->options['alter']['make_link'] = TRUE;
    $this->options['alter']['path'] = "{$base}/export/xml/{$nid}";
    $text = !empty($this->options['text']) ? $this->options['text'] : t('XML');
    return $text;
  }
}