function badbehavior_settings_form in Bad Behavior 6        
                          
                  
                        Same name and namespace in other branches
- 6.2 badbehavior.admin.inc \badbehavior_settings_form()
 - 7.2 badbehavior.admin.inc \badbehavior_settings_form()
 
 
1 string reference to 'badbehavior_settings_form'
  - badbehavior_menu in ./badbehavior.module
 
  - Implements hook_menu().
 
 
File
 
   - ./badbehavior.admin.inc, line 70
 
  - Admin page callbacks for the badbehavior module.
 
Code
function badbehavior_settings_form() {
  $form['badbehavior_mail'] = array(
    '#type' => 'textfield',
    '#title' => t('Administrator Email'),
    '#default_value' => variable_get('badbehavior_mail', variable_get('site_mail', ini_get('sendmail_from'))),
    '#description' => t('E-mail address for blocked users to contact in order to gain access.'),
    '#required' => TRUE,
  );
  $form['badbehavior_logging'] = array(
    '#type' => 'select',
    '#title' => t('Logging'),
    '#options' => array(
      0 => t('Disabled'),
      1 => t('Normal'),
      'verbose' => t('Verbose'),
    ),
    '#default_value' => variable_get('badbehavior_logging', 1),
  );
  $form['badbehavior_strict'] = array(
    '#type' => 'checkbox',
    '#title' => 'Enable strict mode',
    '#default_value' => variable_get('badbehavior_strict', 0),
    '#description' => t('Strict module blocks more spam but may cause false positives and block some people.'),
  );
  $form['httpbl'] = array(
    '#type' => 'fieldset',
    '#title' => t('http:BL'),
    '#description' => t("To use Bad Behavior's http:BL features you must have an <a href=\"@httpbl-url\">http:BL Access Key</a>", array(
      '@httpbl-url' => 'http://www.projecthoneypot.org/httpbl_configure.php?rf=24694',
    )),
  );
  $form['httpbl']['badbehavior_httpbl_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Your http:BL access key'),
    '#default_value' => variable_get('badbehavior_httpbl_key', ''),
    '#maxlength' => 12,
    '#size' => 12,
  );
  return system_settings_form($form);
}