diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-26 21:32:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-26 21:32:20 +0000 |
commit | e27e1a0e0df1e070d8172921461b815317f4bfaa (patch) | |
tree | 4136c973a3c66295ce8e4a6853e08faf7111283f /modules/statistics | |
parent | 218c363c5a79fdfe5c0d8867f0f1c0c4b973a724 (diff) | |
download | brdo-e27e1a0e0df1e070d8172921461b815317f4bfaa.tar.gz brdo-e27e1a0e0df1e070d8172921461b815317f4bfaa.tar.bz2 |
- Patch #266246 by sun, effulgentsia, marcingy: remove smart defaults for system_settings_form().
Diffstat (limited to 'modules/statistics')
-rw-r--r-- | modules/statistics/statistics.admin.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/statistics/statistics.admin.inc b/modules/statistics/statistics.admin.inc index b9e986b85..c5cbbb94f 100644 --- a/modules/statistics/statistics.admin.inc +++ b/modules/statistics/statistics.admin.inc @@ -248,13 +248,13 @@ function statistics_settings_form() { $form['access']['statistics_enable_access_log'] = array( '#type' => 'checkbox', '#title' => t('Enable access log'), - '#default_value' => 0, + '#default_value' => variable_get('statistics_enable_access_log', 0), '#description' => t('Log each page access. Required for referrer statistics.'), ); $form['access']['statistics_flush_accesslog_timer'] = array( '#type' => 'select', '#title' => t('Discard access logs older than'), - '#default_value' => 259200, + '#default_value' => variable_get('statistics_flush_accesslog_timer', 259200), '#options' => array(0 => t('Never')) + drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval'), '#description' => t('Older access log entries (including referrer statistics) will be automatically discarded. (Requires a correctly configured <a href="@cron">cron maintenance task</a>.)', array('@cron' => url('admin/reports/status'))), ); @@ -267,7 +267,7 @@ function statistics_settings_form() { $form['content']['statistics_count_content_views'] = array( '#type' => 'checkbox', '#title' => t('Count content views'), - '#default_value' => 0, + '#default_value' => variable_get('statistics_count_content_views', 0), '#description' => t('Increment a counter each time content is viewed.'), ); |