diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-27 18:58:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-04-27 18:58:41 +0000 |
commit | 468d7beea73da9bf9f27fd42e61aa3a5ede22316 (patch) | |
tree | 8b5e3cf961261b34f5f638939c63f881f86eb8db | |
parent | c73a93e87024ec5faf11b2305a3cd06c435dd7a4 (diff) | |
download | brdo-468d7beea73da9bf9f27fd42e61aa3a5ede22316.tar.gz brdo-468d7beea73da9bf9f27fd42e61aa3a5ede22316.tar.bz2 |
#362852 by Dave Reid: Convert enabled/disabled radios on statistics form to checkboxes.
-rw-r--r-- | modules/statistics/statistics.admin.inc | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/modules/statistics/statistics.admin.inc b/modules/statistics/statistics.admin.inc index 7f49deb12..9d776058c 100644 --- a/modules/statistics/statistics.admin.inc +++ b/modules/statistics/statistics.admin.inc @@ -230,35 +230,36 @@ function statistics_access_log($aid) { * @see system_settings_form() */ function statistics_settings_form() { - // Access log settings: - $options = array('1' => t('Enabled'), '0' => t('Disabled')); + // Access log settings. $form['access'] = array( '#type' => 'fieldset', - '#title' => t('Access log settings')); + '#title' => t('Access log settings'), + ); $form['access']['statistics_enable_access_log'] = array( - '#type' => 'radios', + '#type' => 'checkbox', '#title' => t('Enable access log'), '#default_value' => 0, - '#options' => $options, - '#description' => t('Log each page access. Required for referrer statistics.')); - $period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval'); + '#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, - '#options' => $period, - '#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')))); + '#default_value' => 259200, + '#options' => 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'))), + ); - // count content views settings + // Content counter settings. $form['content'] = array( '#type' => 'fieldset', - '#title' => t('Content viewing counter settings')); + '#title' => t('Content viewing counter settings'), + ); $form['content']['statistics_count_content_views'] = array( - '#type' => 'radios', + '#type' => 'checkbox', '#title' => t('Count content views'), '#default_value' => 0, - '#options' => $options, - '#description' => t('Increment a counter each time content is viewed.')); + '#description' => t('Increment a counter each time content is viewed.'), + ); - return system_settings_form($form, TRUE); + return system_settings_form($form); } |