summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-08-03 18:39:17 +0000
committerDries Buytaert <dries@buytaert.net>2001-08-03 18:39:17 +0000
commitcd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e (patch)
tree38c844b9102b5c60e70e6c4974435784d2882122 /modules/comment.module
parent2e8763bac0208a85e7d0f93ff4561684b1813b3c (diff)
downloadbrdo-cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e.tar.gz
brdo-cd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e.tar.bz2
- import.module:
+ applied Julian's fputs() patch + fixed typo - cloud.module: + applied Julian's fputs() patch - comment.module: + applied Julian's "delete" patch
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module9
1 files changed, 9 insertions, 0 deletions
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();