From f104d3cc12134fc574373d6a643d9c84a317de44 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 26 Sep 2003 10:04:09 +0000 Subject: - Committed the admin menu integration patch. Thanks Adrian, Stefan and others. --- modules/story/story.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/story/story.module') diff --git a/modules/story/story.module b/modules/story/story.module index f58fa4381..0d00a1e9f 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -54,8 +54,10 @@ function story_access($op, $node) { function story_link($type) { $links = array(); - if ($type == "menu.create" && user_access("create stories")) { - $links[] = l(t("create story"), "node/add/story", array("title" => t("Add a new story."))); + if ($type == "system") { + if (user_access("create stories")) { + menu("node/add/story", t("create story"), NULL, NULL, 0); + } } return $links; -- cgit v1.2.3