You are here

function expire_comment_delete in Cache Expiration 7

Same name and namespace in other branches
  1. 7.2 expire.module \expire_comment_delete()

Implements hook_comment_delete().

Acts when deleting comments.

File

./expire.module, line 101
Provides logic for page cache expiration

Code

function expire_comment_delete($comment) {
  if (!empty($comment->nid)) {
    $node = node_load($comment->nid);
    if ($node) {
      expire_node($node);
    }
  }
}