You are here

function kaltura_views_handler_field_kaltura_media::options_form in Kaltura 7.2

Same name and namespace in other branches
  1. 7.3 plugins/kaltura_views/kaltura_views_handler_field_kaltura_media.inc \kaltura_views_handler_field_kaltura_media::options_form()

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

Overrides views_handler_field::options_form

File

plugins/kaltura_views/kaltura_views_handler_field_kaltura_media.inc, line 49

Class

kaltura_views_handler_field_kaltura_media

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Player Height'),
    '#size' => 5,
    '#default_value' => !empty($this->options['height']) ? $this->options['height'] : '364',
  );
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Player Width'),
    '#size' => 5,
    '#default_value' => !empty($this->options['width']) ? $this->options['width'] : '410',
  );
  $form['uiconf'] = array(
    '#type' => 'textfield',
    '#title' => t('Custom player uiconf'),
    '#size' => 5,
    '#default_value' => !empty($this->options['uiconf']) ? $this->options['uiconf'] : '',
    '#description' => t('If left empty the default uiconf will be used'),
  );
  $form['delivery'] = array(
    '#type' => 'select',
    '#title' => t('Please select delivery type'),
    '#options' => array(
      'HTTP' => 'Progressive Download (HTTP)',
      'RTMP' => 'Adaptive Streaming (RTMP)',
    ),
    '#default_value' => !empty($this->options['delivery']) ? $this->options['delivery'] : '',
  );
}