dblog_admin_settings

6 dblog.admin.inc dblog_admin_settings()

dblog module settings form.

See also

system_settings_form()

Related topics

1 string reference to 'dblog_admin_settings'

File

modules/dblog/dblog.admin.inc, line 14
Administrative page callbacks for the dblog module.

Code

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), 
    '#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);
}
Login or register to post comments