function views_plugin_style_rss::options_form

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_style_rss.inc \views_plugin_style_rss::options_form()

Overrides views_plugin_style::options_form

File

plugins/views_plugin_style_rss.inc, line 51

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,
            ),
        ),
        '#maxlength' => 1024,
    );
}