summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-20 21:51:23 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-20 21:51:23 +0000
commit4bdac4333ba34adc61e19180b5f1bcde692615e2 (patch)
treeed30f0417f99d0257bef231f6652d1399d0e520a /modules/taxonomy/taxonomy.module
parent9000f825cc63e6b52ad4f19f633d67aa16fef799 (diff)
downloadbrdo-4bdac4333ba34adc61e19180b5f1bcde692615e2.tar.gz
brdo-4bdac4333ba34adc61e19180b5f1bcde692615e2.tar.bz2
- Patch by JonBob:
Phase 2 of the menu system integration project. This unifies the interface used by admin and non-admin pages, and deprecates the _page hook in favor of explicit callbacks from menu(). Breadcrumbs, titles, and help text go away as a result of this patch; they will return in the phase 3 patch, printed by the theme.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index f26b36d1d..135241f43 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -28,6 +28,9 @@ function taxonomy_link($type, $node = NULL) {
menu("admin/taxonomy/add/vocabulary", t("create new vocabulary"), "taxonomy_admin");
menu("admin/taxonomy/help", t("help"), "taxonomy_admin", 9);
}
+ if (user_access("access content")) {
+ menu("taxonomy", t("taxonomy"), "taxonomy_page", 0, 1);
+ }
}
else if ($type == "taxonomy terms" && $node != NULL) {
$links = array();
@@ -792,7 +795,9 @@ function taxonomy_admin() {
$output .= message_access();
}
- return $output;
+ print theme("header");
+ print $output;
+ print theme("footer");
}
function taxonomy_help($section = "admin/help#taxonomy") {