From 56c662174d64a06c6ff094c9993e28216426877a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 6 Aug 2003 21:14:05 +0000 Subject: - More help system improvements by Michael. --- modules/comment/comment.module | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 66667bf68..4ef227806 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -718,32 +718,22 @@ function comment_link($type, $node = 0, $main = 0) { } if ($type == "admin" && user_access("administer comments")) { - $help["general"] = t("Comments let users give feedback to content authors. Here you may review/approve/deny recent comments, and configure moderation if desired."); - $help["post-overview"] = t("Click on new or updated comments to see your latest comments, or comment approval queue to approve new comments.", array("%nup" => url("admin/comment/0"), "%queue" => url("admin/comment/1"))); - $help["new-update"] = t("Below is a list of the latest comments posted your site. Click on a subject to see the comment, the author's name to edit the author's user information , \"edit comment\" to edit the comment, and \"delete comment\" to remove the comment."); - $help["queue"] = t("Below is a list of the comments posted to your site that need approval. To approve a comment click on \"edit comment\" and then change it's moderation status to Approved.
Click on a subject to see the comment, the author's name to edit the author's user information, \"edit comment\" to edit the comment, and \"delete comment\" to remove the comment."); - $help["moderation-overview"] = t("If you have a get a lot of comments, you can enable comment moderation. Once moderation is enabled users can vote on a comment based on dropdown menus. votes sets up the names of each item, and the order of the menu, using weights. matrix sets up the value of each user's vote, and threshold sets up the levels at which a comment will be displayed.", array("%votes" => url("admin/comment/moderation/votes"), "%matrix" => url("admin/comment/moderation/matrix"), "%threshold" => url("admin/comment/moderation/threshold"))); - $help["moderation-vote"] = t("Here is where you setup the names of each type of vote. Weight lets you set the order of the drop down menu. Click edit to edit a current vote weight.
Notes: "); - $help["moderation-matrix"] = t("Here is where you assign a value to each item in the dropdown. This value is added to the vote total, which is then divided by the number of users who have voted and rounded off to the nearest integer.
Notes: "); - $help["moderation-threshold"] = t("Optional Here you can setup the name and minimum \"cut off\" score to help your users hide comments that they don't want too see. These thresholds appear in the Comment Control Panel. Click \"edit\" to edit the values of an already exsisting threashold. To delete a threshold click on \"edit\". "); - $help["initial"] = t("Here you can setup the initial vote value of a comment posted by each user role. This value is used before any other users vote on the comment.
Note: Blank entries are valued at zero"); - $help["search"] = t("Enter a simple pattern ( '*' maybe used as a wildcard match) to search for a comment. For example, one may search for 'br' and Drupal might return 'bread brakers', 'our daily bread' and 'brenda'."); - - menu("admin/comment", "comment management", "comment_admin", $help["general"], 2); - menu("admin/comment/comments", "comment overview",NULL, $help["post-overview"], 2); - menu("admin/comment/comments/0", "new or updated comments", "comment_admin", $help["new-update"], 1); - menu("admin/comment/comments/1", "comment approval queue", "comment_admin", $help["queue"], 2); - menu("admin/comment/search", "search comments", "comment_admin", $help["search"], 8); + + menu("admin/comment", "comment management", "comment_admin", comment_help("admin/comment"), 2); + menu("admin/comment/comments", "comment overview",NULL, comment_help("admin/comment/comments"), 2); + menu("admin/comment/comments/0", "new or updated comments", "comment_admin", comment_help("admin/comment/comments/0"), 1); + menu("admin/comment/comments/1", "comment approval queue", "comment_admin", comment_help("admin/comment/comments/1"), 2); + menu("admin/comment/search", "search comments", "comment_admin", comment_help("admin/comment/search"), 8); menu("admin/comment/help", "help", "comment_help", NULL, 9); menu("admin/comment/edit", "edit comment", "comment_admin", NULL, 0, 1); // comment settings: if (user_access("administer moderation")) { - menu("admin/comment/moderation", "comment moderation", NULL, $help["moderation-overview"], 3); - menu("admin/comment/moderation/votes", "votes", "comment_admin", $help["moderation-vote"]); - menu("admin/comment/moderation/matrix", "matrix", "comment_admin", $help["moderation-matrix"]); - menu("admin/comment/moderation/filters", "thresholds", "comment_admin", $help["moderation-threshold"]); - menu("admin/comment/roles", "initial comment scores", "comment_admin", $help["initial"], 6); + menu("admin/comment/moderation", "comment moderation", NULL, comment_help("admin/comment/moderation"), 3); + menu("admin/comment/moderation/votes", "votes", "comment_admin", comment_help("admin/comment/moderation/votes")); + menu("admin/comment/moderation/matrix", "matrix", "comment_admin", comment_help("admin/comment/moderation/matrix")); + menu("admin/comment/moderation/filters", "thresholds", "comment_admin", comment_help("admin/comment/moderation/filters")); + menu("admin/comment/roles", "initial comment scores", "comment_admin", comment_help("admin/comment/roles"), 6); } } -- cgit v1.2.3