function badbehavior_settings in Bad Behavior 5.2
1 string reference to 'badbehavior_settings'
- badbehavior_menu in ./
badbehavior.module - Implementation of hook_menu().
File
- ./
badbehavior.module, line 139
Code
function badbehavior_settings() {
// TODO: Add a checkbox to toggle between using the email provided in this
// textfield or the system wide contact email provided in the Site Information
// page settings.
$form['badbehavior_email'] = array(
'#type' => 'textfield',
'#title' => t('Administrator Email'),
'#default_value' => variable_get('badbehavior_email', 'badbots@ioerror.us'),
'#size' => 50,
'#maxlength' => 50,
'#description' => t('Administrator email address for blocked users to contact to gain access'),
);
$form['badbehavior_strict_mode_enable'] = array(
'#type' => 'radios',
'#title' => 'Enable Strict Mode',
'#default_value' => variable_get('badbehavior_strict_mode_enable', 0),
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#description' => t('Enable strict checking (blocks more spam but may block some people)'),
);
$form['badbehavior_verbose_logging_enable'] = array(
'#type' => 'radios',
'#title' => 'Enable Verbose Logging',
'#default_value' => variable_get('badbehavior_verbose_logging_enable', 0),
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#description' => t('Enables or disables verbose logging which includes all requests, not just failed ones'),
);
return system_settings_form($form);
}