From 32e8d77cd6872b98f5fe00f35b6d124a28a977f0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 28 Sep 2003 17:53:04 +0000 Subject: - Associate a callback with the menu links! (This callback is not yet being called but will be as soon the remaining links have been transformed to use the menu system.) - Made sure the menu does not render links with no callback and no children. Like this, the 'create content' link is not being shown when the user has no permission to add any content. --- modules/poll.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/poll.module') diff --git a/modules/poll.module b/modules/poll.module index 1d4680a61..74ca02e89 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -163,7 +163,7 @@ function poll_link($type, $node = 0, $main) { if ($type == "system") { if (user_access("create polls")) { - menu("node/add/poll",t("poll"), NULL, NULL, 0); + menu("node/add/poll",t("poll"), "poll_page", NULL, 0); } } else if ($type == "page" && user_access("access content")) { -- cgit v1.2.3