function expire_comment_unpublish in Cache Expiration 7
Same name and namespace in other branches
- 7.2 expire.module \expire_comment_unpublish()
Implements hook_comment_unpublish().
Acts when unpublishing comments.
File
- ./
expire.module, line 87 - Provides logic for page cache expiration
Code
function expire_comment_unpublish($comment) {
if (!empty($comment->nid)) {
$node = node_load($comment->nid);
if ($node) {
expire_node($node);
}
}
}