summaryrefslogtreecommitdiff
path: root/modules/archive.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-23 10:41:04 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-23 10:41:04 +0000
commit26735ac5dd06c064bb816bcf264fbeb44ac3b0b7 (patch)
tree7d3e61703899588cf9a3dd61788965bdcf629266 /modules/archive.module
parente4d791fe0d5a70867448c9fd5b2d03b9d69b98a0 (diff)
downloadbrdo-26735ac5dd06c064bb816bcf264fbeb44ac3b0b7.tar.gz
brdo-26735ac5dd06c064bb816bcf264fbeb44ac3b0b7.tar.bz2
- 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.
Diffstat (limited to 'modules/archive.module')
-rw-r--r--modules/archive.module8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 58a682182..be2ad00f4 100644
--- a/modules/archive.module
+++ b/modules/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 = "<div class=\"container-inline\">";
$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 .= "</div>";
- print theme("box", t("Archives"), form($start));
+ print form($start);
/*
** Fetch nodes for the selected date, or current date if none