You are here

function dblog_form_system_logging_settings_alter in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/dblog/dblog.module \dblog_form_system_logging_settings_alter()
  2. 9 core/modules/dblog/dblog.module \dblog_form_system_logging_settings_alter()

Implements hook_form_FORM_ID_alter() for system_logging_settings().

File

modules/dblog/dblog.module, line 176
System monitoring and logging for administrators.

Code

function dblog_form_system_logging_settings_alter(&$form, $form_state) {
  $form['dblog_row_limit'] = array(
    '#type' => 'select',
    '#title' => t('Database log messages to keep'),
    '#default_value' => variable_get('dblog_row_limit', 1000),
    '#options' => array(
      0 => t('All'),
    ) + drupal_map_assoc(array(
      100,
      1000,
      10000,
      100000,
      1000000,
    )),
    '#description' => t('The maximum number of messages to keep in the database log. Requires a <a href="@cron">cron maintenance task</a>.', array(
      '@cron' => url('admin/reports/status'),
    )),
  );
  $form['actions']['#weight'] = 1;
}