function views_plugin_style_rss::options_form in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 plugins/views_plugin_style_rss.inc \views_plugin_style_rss::options_form()
- 7.3 plugins/views_plugin_style_rss.inc \views_plugin_style_rss::options_form()
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,
),
),
'#maxlength' => 1024,
);
}