You are here

function flexiform_views_handler_field_flexiform_modal_button::options_form in Flexiform 7

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

Overrides views_handler_field::options_form

File

includes/views/handlers/flexiform_views_handler_field_flexiform_modal_button.inc, line 24
Contains flexiform_views_handler_field_flexiform_modal_button

Class

flexiform_views_handler_field_flexiform_modal_button
@file Contains flexiform_views_handler_field_flexiform_modal_button

Code

function options_form(&$form, &$form_state) {
  $form['button_text'] = array(
    '#type' => 'textfield',
    '#title' => t('Button Text'),
    '#description' => t('The text to display on the button.'),
    '#default_value' => $this->options['button_text'],
  );
  $form['button_class'] = array(
    '#type' => 'textfield',
    '#title' => t('Button Class'),
    '#description' => t('CSS classes to apply to the button.'),
    '#default_value' => $this->options['button_class'],
  );
  parent::options_form($form, $form_state);
}