You are here

function autoban_vbo_comment_ban_range_action in Automatic IP ban (Autoban) 7

File

autoban_vbo/autoban_vbo.module, line 39
Defines the VBO integration module. This adds ban actions to VBO.

Code

function autoban_vbo_comment_ban_range_action(&$comment, $context) {
  if (!empty($comment->hostname)) {
    autoban_ban_manual($comment->hostname, AUTOBAN_RANGE_IP);
  }
}