You are here

function views_horizontal_slider_style_plugin::options_form in Views Horizontal Slider 7

Provide a form to edit options for this plugin.

Overrides views_plugin_style::options_form

File

./views_horizontal_slider_style_plugin.inc, line 29
Views settings, output and data validation

Class

views_horizontal_slider_style_plugin
@file Views settings, output and data validation

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  unset($form['grouping']);

  //unset($form['type']);
  $form['animate_in'] = array(
    '#type' => 'textfield',
    '#title' => t('Animate In'),
    '#required' => TRUE,
    '#description' => t('Specify the Animation In Speed'),
    '#default_value' => $this->options['animate_in'],
  );
  $form['animate_out'] = array(
    '#type' => 'textfield',
    '#title' => t('Animate Out'),
    '#required' => TRUE,
    '#description' => t('Specify the Animation Out Speed'),
    '#default_value' => $this->options['animate_out'],
  );
  $form['min_width'] = array(
    '#type' => 'textfield',
    '#title' => t('Min Width'),
    '#required' => TRUE,
    '#description' => t('Minimum width of an image/item'),
    '#default_value' => $this->options['min_width'],
  );
  $form['max_width'] = array(
    '#type' => 'textfield',
    '#title' => t('Max Width'),
    '#required' => TRUE,
    '#description' => t('Maximum width of an image/item'),
    '#default_value' => $this->options['max_width'],
  );
  $form['activated_item'] = array(
    '#type' => 'textfield',
    '#title' => t('Active Item'),
    '#required' => FALSE,
    '#description' => t('The item that is active on page load. Start: 1 to the number of images/items you have. '),
    '#default_value' => $this->options['activated_item'],
  );
  $form['caption_field_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Caption field name'),
    '#required' => FALSE,
    '#description' => t('Name of the field that will be used as caption. You only need that if you want to fade in a caption on hover. You can get the field name out of the html code (for "example views-field-title"). Leave empty if not used.'),
    '#default_value' => $this->options['caption_field_name'],
  );
  $form['caption_field_fadein'] = array(
    '#type' => 'textfield',
    '#title' => t('Caption field Fade in speed'),
    '#required' => FALSE,
    '#description' => t('Fade in speed '),
    '#default_value' => $this->options['caption_field_fadein'],
  );
  $form['caption_field_fadeout'] = array(
    '#type' => 'textfield',
    '#title' => t('Caption field Fade out speed'),
    '#required' => FALSE,
    '#description' => t('Fade out speed '),
    '#default_value' => $this->options['caption_field_fadeout'],
  );
}