You are here

function autoban_vbo_comment_ban_single_action in Automatic IP ban (Autoban) 7

File

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

Code

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