summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index f3f53577a..8ada37458 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1466,7 +1466,10 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
$node->comment = variable_get("comment_$node->type", 2);
}
break;
+ case "delete":
+ db_query("DELETE FROM comments WHERE nid = '$node->nid'");
+ break;
}
}
-?>
+?> \ No newline at end of file