You are here

function comment_ip_action_info in Comment IP 7

Implementation of hook_action_info().

File

./comment_ip.module, line 11
Main hooks and functions for comment_ip module.

Code

function comment_ip_action_info() {
  $action = array(
    'comment_block_ip' => array(
      'label' => t("Block the Comment Hostname(IP)"),
      'type' => 'comment',
      'configurable' => FALSE,
      'triggers' => array(
        'any',
      ),
      'pass rows' => TRUE,
    ),
    'comment_block_ip_and_delete' => array(
      'label' => t("Block the Comment Hostname(IP) and Delete the Comment"),
      'type' => 'comment',
      'configurable' => FALSE,
      'triggers' => array(
        'any',
      ),
      'pass rows' => TRUE,
    ),
  );
  return $action;
}