You are here

public function bat_type_handler_link_field::options_form in Booking and Availability Management Tools for Drupal 7

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

Overrides views_handler_field::options_form

File

modules/bat_unit/views/bat_type_handler_link_field.inc, line 39
Contains a Views field handler to take care of displaying links to entities as fields.

Class

bat_type_handler_link_field

Code

public 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'],
  );
  $form['destination'] = array(
    '#type' => 'checkbox',
    '#title' => t('Include destination'),
    '#description' => t('Include a "destination" parameter in the link to return the user to the original view upon completing the link action.'),
    '#default_value' => $this->options['destination'],
  );
}