function system_logging_settings

Form builder; Configure error reporting settings.

See also

system_logging_settings_submit()

Related topics

1 string reference to 'system_logging_settings'
system_menu in drupal/core/modules/system/system.module
Implements hook_menu().

File

drupal/core/modules/system/system.admin.inc, line 1568
Admin page callbacks for the system module.

Code

function system_logging_settings($form, &$form_state) {
  $form['error_level'] = array(
    '#type' => 'radios',
    '#title' => t('Error messages to display'),
    '#default_value' => config('system.logging')
      ->get('error_level'),
    '#options' => array(
      ERROR_REPORTING_HIDE => t('None'),
      ERROR_REPORTING_DISPLAY_SOME => t('Errors and warnings'),
      ERROR_REPORTING_DISPLAY_ALL => t('All messages'),
      ERROR_REPORTING_DISPLAY_VERBOSE => t('All messages, with backtrace information'),
    ),
    '#description' => t('It is recommended that sites running on production environments do not display any errors.'),
  );
  return system_config_form($form, $form_state);
}