summaryrefslogtreecommitdiff
path: root/modules/dblog/dblog.admin.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dblog/dblog.admin.inc')
-rw-r--r--modules/dblog/dblog.admin.inc16
1 files changed, 6 insertions, 10 deletions
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc
index ce0f79de2..764776d8e 100644
--- a/modules/dblog/dblog.admin.inc
+++ b/modules/dblog/dblog.admin.inc
@@ -7,21 +7,17 @@
*/
/**
- * dblog module settings form.
- *
- * @ingroup forms
- * @see system_settings_form()
+ * Implementation of hook_form_FORM_ID_alter().
*/
-function dblog_admin_settings() {
+function dblog_form_system_logging_settings_alter(&$form, $form_state) {
$form['dblog_row_limit'] = array(
'#type' => 'select',
- '#title' => t('Discard log entries above the following row limit'),
- '#default_value' => 1000,
+ '#title' => t('Database log entries to keep'),
+ '#default_value' => variable_get('dblog_row_limit', 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')))
+ '#description' => t('The maximum number of entries to keep in the database log. Requires a <a href="@cron">cron maintenance task</a>.', array('@cron' => url('admin/reports/status')))
);
-
- return system_settings_form($form, TRUE);
+ $form['buttons']['#weight'] = 1;
}
/**