You are here

function autoban_page_build in Automatic IP ban (Autoban) 7

Implements hook_page_build().

File

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

Code

function autoban_page_build(&$page) {
  if (variable_get('autoban_force_enable', FALSE)) {
    $count = autoban_ban_all();
    if ($count) {
      watchdog('autoban', 'Banned IP by force mode. Total count: @count.', array(
        '@count' => $count,
      ));
    }
  }
}