syslog_form_system_logging_settings_alter
- Versions
- 7
syslog_form_system_logging_settings_alter(&$form, &$form_state)
Implements hook_form_FORM_ID_alter().
Code
modules/syslog/syslog.module, line 38
<?php
function syslog_form_system_logging_settings_alter(&$form, &$form_state) {
if (defined('LOG_LOCAL0')) {
$help = module_exists('help') ? ' ' . l(t('More information'), 'admin/help/syslog') . '.' : NULL;
$form['syslog_facility'] = array(
'#type' => 'select',
'#title' => t('Syslog facility'),
'#default_value' => variable_get('syslog_facility', LOG_LOCAL0),
'#options' => syslog_facility_list(),
'#description' => t('Depending on the system configuration, Syslog and other logging tools use this code to identify or filter messages from within the entire system log.') . $help,
);
$form['buttons']['#weight'] = 1;
}
}
?>Login or register to post comments 