diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-09 18:53:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-09 18:53:22 +0000 |
commit | 1a5fcacdd9d6831a01d8eab8f49674c59c25cb80 (patch) | |
tree | 058d3837d5609f0e26442f38b3e35fe7305d1d36 /modules/comment/comment.module | |
parent | 928527538757cffbaaee811d06ae7b6a99f2afe4 (diff) | |
download | brdo-1a5fcacdd9d6831a01d8eab8f49674c59c25cb80.tar.gz brdo-1a5fcacdd9d6831a01d8eab8f49674c59c25cb80.tar.bz2 |
- Committed part 3 of Michael's help system improvements: removed the $help
parameter from the menu() function.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index a03f236d9..9a590471d 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1,12 +1,11 @@ <?php // $Id$ -function comment_help($section = "admin/comment/help") { +function comment_help($section = "admin/help#comment") { $output = ""; switch ($section) { - case 'admin/help': - case 'admin/comment/help': + case 'admin/help#comment': $output .= "<p>When enabled, the Drupal comment module creates a discussion board for each Drupal node. Users can post comments to discuss a forum topic, weblog post, collaborative book page, etc.</p>"; $output .= "<h3>User control of comment display</h3>"; $output .= "<p>Attached to each comment board is a control panel for customizing the way that comments are displayed. Users can control the chronological ordering of posts (newest or oldest first) and the number of posts to display on each page. Additional settings include:</p>"; @@ -843,21 +842,21 @@ function comment_link($type, $node = 0, $main = 0) { if ($type == "system") { if (user_access("administer comments")) { - menu("admin/comment", t("comments"), "comment_admin", comment_help("admin/comment"), 1); - menu("admin/comment/comments", t("overview"), NULL, comment_help("admin/comment/comments"), 2); - menu("admin/comment/comments/0", t("new/updated"), "comment_admin", comment_help("admin/comment/comments/0"), 1); - menu("admin/comment/comments/1", t("approval queue"), "comment_admin", comment_help("admin/comment/comments/1"), 2); - menu("admin/comment/search", t("search"), "comment_admin", comment_help("admin/comment/search"), 8); - menu("admin/comment/help", t("help"), "comment_help", NULL, 9); - menu("admin/comment/edit", t("edit comment"), "comment_admin", NULL, 0, 1); + menu("admin/comment", t("comments"), "comment_admin", 1); + menu("admin/comment/comments", t("overview"), NULL, 2); + menu("admin/comment/comments/0", t("new/updated"), "comment_admin", 1); + menu("admin/comment/comments/1", t("approval queue"), "comment_admin", 2); + menu("admin/comment/search", t("search"), "comment_admin", 8); + menu("admin/comment/help", t("help"), "comment_help", 9); + menu("admin/comment/edit", t("edit comment"), "comment_admin", 0, 1); // comment settings: if (user_access("administer moderation")) { - menu("admin/comment/moderation", t("moderation"), NULL, comment_help("admin/comment/moderation"), 3); - menu("admin/comment/moderation/votes", t("votes"), "comment_admin", comment_help("admin/comment/moderation/votes")); - menu("admin/comment/moderation/matrix", t("matrix"), "comment_admin", comment_help("admin/comment/moderation/matrix")); - menu("admin/comment/moderation/filters", t("thresholds"), "comment_admin", comment_help("admin/comment/moderation/filters")); - menu("admin/comment/moderation/roles", t("initial scores"), "comment_admin", comment_help("admin/comment/roles"), 6); + menu("admin/comment/moderation", t("moderation"), NULL, 3); + menu("admin/comment/moderation/votes", t("votes"), "comment_admin"); + menu("admin/comment/moderation/matrix", t("matrix"), "comment_admin"); + menu("admin/comment/moderation/filters", t("thresholds"), "comment_admin"); + menu("admin/comment/moderation/roles", t("initial scores"), "comment_admin", 6); } } } |