You are here

function autoban_vbo_action_info in Automatic IP ban (Autoban) 7

@file Defines the VBO integration module. This adds ban actions to VBO.

File

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

Code

function autoban_vbo_action_info() {
  $res = array();
  $res['autoban_vbo_comment_ban_single_action'] = array(
    'type' => 'comment',
    'label' => t(_autoban_get_ip_type_name(AUTOBAN_SINGLE_IP) . ' ban'),
    'configurable' => FALSE,
    'vbo_configurable' => FALSE,
    'triggers' => array(
      'any',
    ),
  );
  if (_autoban_ip_ranges_enable()) {
    $res['autoban_vbo_comment_ban_range_action'] = array(
      'type' => 'comment',
      'label' => t(_autoban_get_ip_type_name(AUTOBAN_RANGE_IP) . ' ban'),
      'configurable' => FALSE,
      'vbo_configurable' => FALSE,
      'triggers' => array(
        'any',
      ),
    );
  }
  return $res;
}