You are here

function views_plugin_row_file_rss::options_form in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 8.2 views/views_plugin_row_file_rss.inc \views_plugin_row_file_rss::options_form()
  2. 7.3 views/views_plugin_row_file_rss.inc \views_plugin_row_file_rss::options_form()

Provide a form for setting options.

Overrides views_plugin_row::options_form

File

views/views_plugin_row_file_rss.inc, line 40
Contains the file RSS row style plugin.

Class

views_plugin_row_file_rss
Plugin which performs a file_view on the resulting object and formats it as an RSS item.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['item_length'] = array(
    '#type' => 'select',
    '#title' => t('Display type'),
    '#options' => $this
      ->options_form_summary_options(),
    '#default_value' => $this->options['item_length'],
  );
  $form['links'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display links'),
    '#default_value' => $this->options['links'],
  );
}