You are here

function bb2_read_settings in Bad Behavior 6

Same name and namespace in other branches
  1. 5.2 badbehavior.module \bb2_read_settings()
  2. 6.2 badbehavior.module \bb2_read_settings()
  3. 7.2 badbehavior.module \bb2_read_settings()
1 call to bb2_read_settings()
badbehavior_start_badbehavior in ./badbehavior.module

File

./badbehavior.module, line 167

Code

function bb2_read_settings() {
  $logging = variable_get('badbehavior_logging', 1);
  return array(
    'log_table' => '{bad_behavior_log}',
    'display_stats' => FALSE,
    'strict' => variable_get('badbehavior_strict', 0),
    'verbose' => $logging == 'verbose',
    'logging' => !empty($logging),
    'httpbl_key' => variable_get('badbehavior_httpbl_key', ''),
    'httpbl_threat' => '25',
    'httpbl_maxage' => '30',
    'offsite_forms' => FALSE,
  );
}