function views_plugin_style_rss::options_form

3.x views_plugin_style_rss.inc views_plugin_style_rss::options_form(&$form, &$form_state)
2.x views_plugin_style_rss.inc views_plugin_style_rss::options_form(&$form, &$form_state)

Provide a form to edit options for this plugin.

Overrides views_plugin_style::options_form

File

plugins/views_plugin_style_rss.inc, line 51
Contains the RSS style plugin.

Class

views_plugin_style_rss
Default style plugin to render an RSS feed.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  $form['mission_description'] = array(
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['mission_description']),
    '#title' => t('Use the site mission for the description'),
  );
  $form['description'] = array(
    '#type' => 'textfield',
    '#title' => t('RSS description'),
    '#default_value' => $this->options['description'],
    '#description' => t('This will appear in the RSS feed itself.'),
    '#process' => array('views_process_dependency'),
    '#dependency' => array('edit-style-options-override' => array(FALSE)),
  );
}