From 26735ac5dd06c064bb816bcf264fbeb44ac3b0b7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 23 Nov 2003 10:41:04 +0000 Subject: - Committed phase 3 of JonBob's menu changes. Adds an API for modules to define titles and breadcrumbs for their pages, and updates the theme system to display them. --- modules/archive/archive.module | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/archive/archive.module') diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 58a682182..be2ad00f4 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -194,6 +194,12 @@ function archive_link($type) { } } + if ($type == "system") { + if (user_access("access content")) { + menu("archive", t("archives"), "archive_page", 0, 1); + } + } + return $links; } @@ -230,7 +236,7 @@ function archive_page() { $start = "
"; $start .= form_select("", "year", ($year ? $year : date("Y")), $years). form_select("", "month", ($month ? $month : date("m")), $months) . form_select("", "day", ($day ? $day : date("d")), $days) . form_submit(t("Show")); $start .= "
"; - print theme("box", t("Archives"), form($start)); + print form($start); /* ** Fetch nodes for the selected date, or current date if none -- cgit v1.2.3