From 2e22798a8d2fdda43c43936aef8e37c62314aee4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 Aug 2003 16:57:55 +0000 Subject: - More help system updates by Michael F. --- modules/queue.module | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'modules/queue.module') diff --git a/modules/queue.module b/modules/queue.module index e79db77f2..4324cd61f 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -2,9 +2,26 @@ // $Id$ function queue_system($field){ - $system["description"] = t("Enables content to be moderated by the community."); - $system["admin_help"] = t("The queue provides a way for your users to vote on submitted content. This is called moderation. Users can moderate a post up (give it a point), or down (subtract a point). The settings below give you control over how many points are required for the status of a post to be automatically changed. See individual items for details."); - return $system[$field]; + $output = ""; + + if ($field == "description") {$output = queue_help("admin/system/modules"); } + else if ($field == "admin_help") {$output = queue_help("admin/system/modules/queue"); }; + + return $output; +} + +function queue_help($section) { + $output = ""; + + switch ($section) { + case 'admin/system/modules': + $output = "Enables content to be moderated by the community."; + break; + case 'admin/system/modules/queue': + $output = "The queue provides a way for your users to vote on submitted content. This is called moderation. Users can moderate a post up (give it a point), or down (subtract a point). The settings below give you control over how many points are required for the status of a post to be automatically changed. See individual items for details."; + break; + } + return t($output); } function queue_settings() { -- cgit v1.2.3