diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-11 21:19:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-11 21:19:19 +0000 |
commit | bdbd0dffe5960abaae3de9774ad104bd117dc706 (patch) | |
tree | a6654f7beea0d0344a349ada4723408bc54ef83f /modules/syslog/syslog.module | |
parent | f80c6184276793e60cd67ef0bad39c2c1914e10e (diff) | |
download | brdo-bdbd0dffe5960abaae3de9774ad104bd117dc706.tar.gz brdo-bdbd0dffe5960abaae3de9774ad104bd117dc706.tar.bz2 |
- Patch #266246 by David Strauss: added smart defaults for system_settings_form().
Diffstat (limited to 'modules/syslog/syslog.module')
-rw-r--r-- | modules/syslog/syslog.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/syslog/syslog.module b/modules/syslog/syslog.module index 5e30917f7..6d29e4984 100644 --- a/modules/syslog/syslog.module +++ b/modules/syslog/syslog.module @@ -41,12 +41,12 @@ function syslog_admin_settings() { $form['syslog_facility'] = array( '#type' => 'select', '#title' => t('Send events to this syslog facility'), - '#default_value' => variable_get('syslog_facility', DEFAULT_SYSLOG_FACILITY), + '#default_value' => DEFAULT_SYSLOG_FACILITY, '#options' => syslog_facility_list(), '#description' => t('Select the syslog facility code under which Drupal\'s messages should be sent. On UNIX/Linux systems, Drupal can flag its messages with the code LOG_LOCAL0 through LOG_LOCAL7; for Microsoft Windows, all messages are flagged with the code LOG_USER. Depending on the system configuration, syslog and other logging tools use this code to identify or filter Drupal messages from within the entire system log. For more information on syslog, see <a href="@syslog_help">Syslog help</a>.', array( '@syslog_help' => url('admin/help/syslog'))), ); - return system_settings_form($form); + return system_settings_form($form, TRUE); } function syslog_facility_list() { |