function errorlog_admin_settings in Logging and alerts 7
Same name and namespace in other branches
- 6.2 errorlog/errorlog.admin.inc \errorlog_admin_settings()
- 6 errorlog/errorlog.admin.inc \errorlog_admin_settings()
- 7.2 errorlog/errorlog.admin.inc \errorlog_admin_settings()
Returns admin settings form.
1 string reference to 'errorlog_admin_settings'
- errorlog_menu in errorlog/
errorlog.module - Implements hook_menu().
File
- errorlog/
errorlog.admin.inc, line 11 - Admin callbacks for the Web Server Logging and Alerts module.
Code
function errorlog_admin_settings() {
$form['errorlog'] = array(
'#type' => 'fieldset',
'#title' => t('Error logging for each severity level.'),
'#description' => t('Check each severity level you want to get logged to the error log.'),
);
foreach (watchdog_severity_levels() as $severity => $description) {
$key = 'errorlog_' . $severity;
$form['errorlog'][$key] = array(
'#type' => 'checkbox',
'#title' => t('Severity: @description', array(
'@description' => drupal_ucfirst($description),
)),
'#default_value' => variable_get($key, FALSE),
);
}
return system_settings_form($form);
}