You are here

function comment_block_ip_and_delete in Comment IP 7

Action function for comment_block_ip_and_delete.

File

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

Code

function comment_block_ip_and_delete(&$entity, $context = array()) {

  // Block the IP.
  comment_block_ip($entity);

  // Now Delete the comment and its replies.
  comment_delete($entity->cid);
}