You are here

class biblio_handler_field_export_link in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 views/biblio_handler_field_export_link.inc \biblio_handler_field_export_link
  2. 7.2 views/biblio_handler_field_export_link.inc \biblio_handler_field_export_link

@file Views biblio export link handler for Drupal biblio module.

Hierarchy

Expanded class hierarchy of biblio_handler_field_export_link

5 string references to 'biblio_handler_field_export_link'
biblio_bibtex_views_handlers in modules/bibtexParse/views/biblio_bibtex.views.inc
biblio_ris_views_handlers in modules/RIS/views/biblio_ris.views.inc
biblio_rtf_views_handlers in modules/rtf/views/biblio_rtf.views.inc
biblio_tagged_views_handlers in modules/endnote/views/biblio_tagged.views.inc
biblio_xml_views_handlers in modules/endnote/views/biblio_xml.views.inc

File

views/biblio_handler_field_export_link.inc, line 6
Views biblio export link handler for Drupal biblio module.

View source
class biblio_handler_field_export_link extends views_handler_field {
  function init(&$view, $options) {
    parent::init($view, $options);
    $this->additional_fields['nid'] = array(
      'table' => 'node',
      'field' => 'nid',
    );
  }
  function query() {
    $this
      ->add_additional_fields();
  }
  function option_definition() {
    $options = parent::option_definition();
    $options['text'] = array(
      'default' => '',
      'translatable' => TRUE,
    );
    return $options;
  }
  function options_form(&$form, &$form_state) {
    parent::options_form($form, $form_state);
    $form['text'] = array(
      '#type' => 'textfield',
      '#title' => t('Text to display'),
      '#default_value' => $this->options['text'],
    );
  }

}

Members