function autoban_cron in Automatic IP ban (Autoban) 7
Same name and namespace in other branches
- 8 autoban.module \autoban_cron()
Implements hook_cron().
File
- ./
autoban.module, line 165 - Main file for autoban module.
Code
function autoban_cron() {
if (!variable_get('autoban_cron_enable', TRUE)) {
return;
}
$count = autoban_ban_all();
if ($count) {
watchdog('autoban', 'Banned IP by cron. Total count: @count. (cron IP @ip)', array(
'@ip' => ip_address(),
'@count' => $count,
));
}
}