diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-04-15 19:50:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-04-15 19:50:04 +0000 |
commit | 2de4c1c643d3c23e814bc9f765ffa3e0eabdd696 (patch) | |
tree | 852ae736da509bf40636f9ba2a0e574d5c51286b /modules/comment.module | |
parent | 86ddee8dc586e57456c9bc8fc97fe1c15b4b1c4e (diff) | |
download | brdo-2de4c1c643d3c23e814bc9f765ffa3e0eabdd696.tar.gz brdo-2de4c1c643d3c23e814bc9f765ffa3e0eabdd696.tar.bz2 |
- 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"
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 5 |
1 files changed, 4 insertions, 1 deletions
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 |