You are here

function autoban_get_log_whitelist in Automatic IP ban (Autoban) 7

Get watchdog events whitelist.

Return value

array Watchdog events whitelist list.

2 calls to autoban_get_log_whitelist()
autoban_analyze in ./autoban.admin.inc
Menu callback. Analize watchdog.
_autoban_watchdog_event_extras_event_rows in autoban_watchdog_event_extras/autoban_watchdog_event_extras.module
Implements hook_watchdog_event_extras_alter().

File

./autoban.module, line 649
Main file for autoban module.

Code

function autoban_get_log_whitelist() {
  $whitelist = explode(',', variable_get('autoban_dblog_type_exclude', 'autoban,cron,php,system,user'));
  return $whitelist ? array_map('trim', $whitelist) : array(
    'autoban',
    'cron',
    'php',
    'system',
    'user',
  );
}