function views_plugin_row_watchdog_rss::options_form in Views Watchdog 6.2
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 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 31 - Views row plugin for the views_watchdog module.
Class
- views_plugin_row_watchdog_rss
- Formats watchdog events as RSS items.
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.'),
'#default_value' => !empty($this->options['watchdog_rss_type']) ? $this->options['watchdog_rss_type'] : 'default',
'#options' => array(
'fulltext' => t('Title plus message'),
'title' => t('Title only'),
'default' => t('Use default RSS settings'),
),
);
$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' => !empty($this->options['watchdog_rss_title']) ? $this->options['watchdog_rss_title'] : '[severity] - [type]',
);
}