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/dblog | |
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/dblog')
-rw-r--r-- | modules/dblog/dblog.admin.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc index 0f575b305..835406053 100644 --- a/modules/dblog/dblog.admin.inc +++ b/modules/dblog/dblog.admin.inc @@ -16,12 +16,12 @@ function dblog_admin_settings() { $form['dblog_row_limit'] = array( '#type' => 'select', '#title' => t('Discard log entries above the following row limit'), - '#default_value' => variable_get('dblog_row_limit', 1000), + '#default_value' => 1000, '#options' => drupal_map_assoc(array(100, 1000, 10000, 100000, 1000000)), '#description' => t('The maximum number of rows to keep in the database log. Older entries will be automatically discarded. (Requires a correctly configured <a href="@cron">cron maintenance task</a>.)', array('@cron' => url('admin/reports/status'))) ); - return system_settings_form($form); + return system_settings_form($form, TRUE); } /** |