From 4bdac4333ba34adc61e19180b5f1bcde692615e2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 20 Nov 2003 21:51:23 +0000 Subject: - 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. --- modules/archive/archive.module | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/archive') diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 0677b1766..58a682182 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -188,6 +188,12 @@ function archive_link($type) { $links[] = l(t("archives"), "archive", array("title" => t("Read the older content in our archive."))); } + if ($type == "system") { + if (user_access("access content")) { + menu("archive", t("archives"), "archive_page", 0, 1); + } + } + return $links; } -- cgit v1.2.3