From c6b215c057406f5a6d112133f995c08d80c3060a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 12 Aug 2003 19:39:53 +0000 Subject: - Heavily modified version of Gerhard's patch #82: the queue module does now inform the user about the status of his or her post. --- modules/queue.module | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules') 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 submission queue.", 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; } } ?> -- cgit v1.2.3