summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index df46f6624..19acb7dab 100644
--- a/modules/taxonomy.module
+++ b/modules/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) {