You are here

function biblio_handler_field_export_link::options_form in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 views/biblio_handler_field_export_link.inc \biblio_handler_field_export_link::options_form()
  2. 7 views/biblio_handler_field_export_link.inc \biblio_handler_field_export_link::options_form()

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

views/biblio_handler_field_export_link.inc, line 21

Class

biblio_handler_field_export_link

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $text = !empty($this->options['text']) ? $this->options['text'] : $this->definition['format name'];
  $form['text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display'),
    '#default_value' => $text,
  );
}