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/poll | |
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/poll')
-rw-r--r-- | modules/poll/poll.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index ccfa3011b..72deda17e 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -137,12 +137,12 @@ function poll_form(&$node, &$help, &$error) { return $output; } -function poll_help($section = "admin/poll/help") { +function poll_help($section = "admin/help#poll") { $output = ""; switch ($section) { - case 'admin/poll/help': + case 'admin/help#poll': $output .= "<p>Users with the correct %permissions can create and/or vote on polls.</p>"; $output .= "<ul>"; $output .= "<li> To create a poll a user needs the \"create polls\" permission.</li>"; @@ -182,7 +182,7 @@ function poll_link($type, $node = 0, $main) { if ($type == "system") { if (user_access("create polls")) { - menu("node/add/poll", t("poll"), "poll_page", NULL, 0); + menu("node/add/poll", t("poll"), "poll_page", 0); } } else if ($type == "page" && user_access("access content")) { |