You are here

function video_views_handler_field_image::options_form in Video 6.2

Build option configuration form.

File

views/video_views_handler_field_image.inc, line 30

Class

video_views_handler_field_image
Field handler to display the video preview thumbnail

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['img_type'] = array(
    '#title' => t('Show image as'),
    '#type' => 'select',
    '#options' => array(
      'thumbnail' => t('Thumbnail'),
      'preview' => t('Preview'),
    ),
    '#default_value' => $this->options['img_type'],
  );
  $form['disp_link'] = array(
    '#title' => t('Link image to video'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['disp_link'],
  );
}