function dblog_form_system_logging_settings_alter

Same name in other branches
  1. 9 core/modules/dblog/dblog.module \dblog_form_system_logging_settings_alter()
  2. 8.9.x core/modules/dblog/dblog.module \dblog_form_system_logging_settings_alter()
  3. 10 core/modules/dblog/dblog.module \dblog_form_system_logging_settings_alter()
  4. 11.x 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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.