diff options
Diffstat (limited to 'modules/story/story.module')
-rw-r--r-- | modules/story/story.module | 6 |
1 files changed, 4 insertions, 2 deletions
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; |