summaryrefslogtreecommitdiff
path: root/modules/queue.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-08-12 19:39:53 +0000
committerDries Buytaert <dries@buytaert.net>2003-08-12 19:39:53 +0000
commitc6b215c057406f5a6d112133f995c08d80c3060a (patch)
treef392530d39fe268361aae148b3fad29f7cb4ac66 /modules/queue.module
parent37310ee6f0ae40b4ed2187a34f3e6c64c102872b (diff)
downloadbrdo-c6b215c057406f5a6d112133f995c08d80c3060a.tar.gz
brdo-c6b215c057406f5a6d112133f995c08d80c3060a.tar.bz2
- Heavily modified version of Gerhard's patch #82: the queue module does now
inform the user about the status of his or her post.
Diffstat (limited to 'modules/queue.module')
-rw-r--r--modules/queue.module12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/queue.module b/modules/queue.module
index 59cab68e2..e79db77f2 100644
--- a/modules/queue.module
+++ b/modules/queue.module
@@ -235,6 +235,18 @@ function queue_nodeapi(&$node, $op, $arg = 0) {
$node->votes = 0;
}
break;
+ case "insert":
+ case "update":
+ if ($node->moderate && user_access("access submission queue")) {
+ theme("box", t("Post queued"), t("The post is queued for approval. You can check the votes in the <a href=\"%queue\">submission queue</a>.", array("%queue" => url("queue"))));
+ }
+ elseif ($node->moderate) {
+ theme("box", t("Post queued"), t("The post is queued for approval. The editors will decide whether it should be published."));
+ }
+ else {
+ theme("box", t("Post published"), t("The post is published."));
+ }
+ break;
}
}
?>