summaryrefslogtreecommitdiff
path: root/modules/node.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/node.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/node.module')
-rw-r--r--modules/node.module15
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/node.module b/modules/node.module
index f2e8ffb87..d4b985eaa 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -570,13 +570,14 @@ function node_link($type, $node = 0, $main = 0) {
}
}
- if ($type == "admin" && user_access("administer nodes")) {
-
- menu("admin/node", "content management", "node_admin", node_help("admin/node"));
- menu("admin/node/search", "search posts", "node_admin", node_help("admin/node/search"), 8);
- menu("admin/node/help", "help", "node_help", NULL, 9);
- menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1);
- menu("admin/node/settings", "content settings", "node_admin", node_help("admin/node/settings"), 8);
+ if ($type == "system") {
+ if (user_access("administer nodes")) {
+ menu("admin/node", "content management", "node_admin", node_help("admin/node"));
+ menu("admin/node/search", "search posts", "node_admin", node_help("admin/node/search"), 8);
+ menu("admin/node/help", "help", "node_help", NULL, 9);
+ menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1);
+ menu("admin/node/settings", "content settings", "node_admin", node_help("admin/node/settings"), 8);
+ }
}
return $links;