From cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Aug 2001 18:39:17 +0000 Subject: - import.module: + applied Julian's fputs() patch + fixed typo - cloud.module: + applied Julian's fputs() patch - comment.module: + applied Julian's "delete" patch --- modules/comment.module | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 0a8150799..873af4326 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -53,6 +53,11 @@ function comment_overview() { return $output; } +function comment_delete($id) { + db_query("DELETE FROM comments WHERE cid = '$id'"); + watchdog("special", "comment: deleted '$id'"); +} + function comment_admin() { global $op, $id, $edit, $mod, $keys, $order; @@ -68,6 +73,10 @@ function comment_admin() { print search_form($keys); print search_data($keys, $mod); break; + case "delete": + print comment_delete(check_input($id)); + print comment_overview(); + break; case t("Submit"): print status(comment_save(check_input($id), $edit)); print comment_overview(); -- cgit v1.2.3