From e27e1a0e0df1e070d8172921461b815317f4bfaa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 26 Jun 2010 21:32:20 +0000 Subject: - Patch #266246 by sun, effulgentsia, marcingy: remove smart defaults for system_settings_form(). --- modules/statistics/statistics.admin.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/statistics/statistics.admin.inc') 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 cron maintenance task.)', 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.'), ); -- cgit v1.2.3