summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.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/taxonomy/taxonomy.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/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index df46f6624..19acb7dab 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -27,10 +27,12 @@ function taxonomy_perm() {
}
function taxonomy_link($type, $node = NULL) {
- if ($type == "admin" && user_access("administer taxonomy")) {
- menu("admin/taxonomy", "taxonomy", "taxonomy_admin", taxonomy_help("admin/taxonomy"), 3);
- menu("admin/taxonomy/add/vocabulary", "create new vocabulary", "taxonomy_admin", taxonomy_help("admin/taxonomy/add/vocabulary"));
- menu("admin/taxonomy/help", "help", "taxonomy_admin", NULL, 9);
+ if ($type == "system") {
+ if (user_access("administer taxonomy")) {
+ menu("admin/taxonomy", "taxonomy", "taxonomy_admin", taxonomy_help("admin/taxonomy"), 3);
+ menu("admin/taxonomy/add/vocabulary", "create new vocabulary", "taxonomy_admin", taxonomy_help("admin/taxonomy/add/vocabulary"));
+ menu("admin/taxonomy/help", "help", "taxonomy_admin", NULL, 9);
+ }
}
else if ($type == "taxonomy terms" && $node != NULL) {