diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-26 10:04:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-26 10:04:09 +0000 |
commit | f104d3cc12134fc574373d6a643d9c84a317de44 (patch) | |
tree | 838bcdb9cff17d43ec39a5ebdfd3274916839580 /modules/poll/poll.module | |
parent | 645d026e098a4dccef1bbbf0e40b9eecc8599daa (diff) | |
download | brdo-f104d3cc12134fc574373d6a643d9c84a317de44.tar.gz brdo-f104d3cc12134fc574373d6a643d9c84a317de44.tar.bz2 |
- Committed the admin menu integration patch. Thanks Adrian, Stefan and others.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r-- | modules/poll/poll.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index b93cdbb8d..36a903bd5 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -161,8 +161,10 @@ function poll_insert($node) { function poll_link($type, $node = 0, $main) { $links = array(); - if ($type == "menu.create" && user_access("create polls")) { - $links[] = l(t("create poll"), "node/add/poll", array("title" => t("Add a new poll."))); + if ($type == "system") { + if (user_access("create polls")) { + menu("node/add/poll",t("create poll"), NULL, NULL, 0); + } } else if ($type == "page" && user_access("access content")) { $links[] = l(t("polls"), "poll", array("title" => t("View the list of polls on this site."))); |