From 2de4c1c643d3c23e814bc9f765ffa3e0eabdd696 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 15 Apr 2003 19:50:04 +0000 Subject: - Node API improvements by Moshe: "implemented pieces of kjartan's original nodeAPI patch. the mingling of other modules into node.module logic decreases (a good thing). for example, the string "taxonomy" now appears nowhere in node.module - moved the saving of taxonomy terms when submitting a node out of node.module and into taxonomy.module - moved the deletion of comments while deleting a node out of node.module and into comment.module - improved usability of node forms by including node type in the title of the box and page" --- modules/comment.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index f3f53577a..8ada37458 100644 --- a/modules/comment.module +++ b/modules/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 -- cgit v1.2.3