summaryrefslogtreecommitdiff
path: root/modules/story/story.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-26 10:04:09 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-26 10:04:09 +0000
commitf104d3cc12134fc574373d6a643d9c84a317de44 (patch)
tree838bcdb9cff17d43ec39a5ebdfd3274916839580 /modules/story/story.module
parent645d026e098a4dccef1bbbf0e40b9eecc8599daa (diff)
downloadbrdo-f104d3cc12134fc574373d6a643d9c84a317de44.tar.gz
brdo-f104d3cc12134fc574373d6a643d9c84a317de44.tar.bz2
- Committed the admin menu integration patch. Thanks Adrian, Stefan and others.
Diffstat (limited to 'modules/story/story.module')
-rw-r--r--modules/story/story.module6
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;