function views_plugin_row_watchdog_rss::options_form in Views Watchdog 6
Same name and namespace in other branches
- 6.3 views/plugins/views_plugin_row_watchdog_rss.inc \views_plugin_row_watchdog_rss::options_form()
- 6.2 views/plugins/views_plugin_row_watchdog_rss.inc \views_plugin_row_watchdog_rss::options_form()
- 7.3 views/plugins/views_plugin_row_watchdog_rss.inc \views_plugin_row_watchdog_rss::options_form()
File
- views/
plugins/ views_plugin_row_watchdog_rss.inc, line 25 - Views callbacks for the "Views watchdog" module.
Class
Code
function options_form(&$form, &$form_state) {
$form['watchdog_rss_type'] = array(
'#type' => 'select',
'#title' => t('Display type'),
'#description' => t('The title includes the severity level and system event type.'),
'#options' => array(
'fulltext' => t('Title plus message'),
'title' => t('Title only'),
'default' => t('Use default RSS settings'),
),
'#default_value' => $this->options['watchdog_rss_type'],
);
$form['watchdog_rss_title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#description' => t('Alter the output of this field by specifying a string of text with replacement tokens. Replacement patterns: [type], [severity], [hostname]'),
'#default_value' => $this->options['watchdog_rss_title'],
);
}