summaryrefslogtreecommitdiff
path: root/modules/archive/archive.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-08-05 18:33:39 +0000
committerDries Buytaert <dries@buytaert.net>2003-08-05 18:33:39 +0000
commit4131b785f7e36862cbcc937c4a395f0bb5fc5874 (patch)
treef7bca1660ea95e95fbd7df5d00ffefd04b125f89 /modules/archive/archive.module
parent173dfb5950c655422f7d362272a7f6642f06f667 (diff)
downloadbrdo-4131b785f7e36862cbcc937c4a395f0bb5fc5874.tar.gz
brdo-4131b785f7e36862cbcc937c4a395f0bb5fc5874.tar.bz2
- Help system improvements from Michael.
Diffstat (limited to 'modules/archive/archive.module')
-rw-r--r--modules/archive/archive.module23
1 files changed, 20 insertions, 3 deletions
diff --git a/modules/archive/archive.module b/modules/archive/archive.module
index 8fbfe6dab..c12272c04 100644
--- a/modules/archive/archive.module
+++ b/modules/archive/archive.module
@@ -1,10 +1,27 @@
<?php
// $Id$
+function archive_help($section) {
+ $output = "";
+
+ switch ($section) {
+ case 'admin/system/modules':
+ $output = "Displays a calendar to navigate old content.";
+ break;
+ case 'admin/system/modules/archive':
+ $output = "Choose the starting \"day of the week\" for the displayed calendar block.";
+ break;
+ }
+
+ return t($output);
+}
function archive_system($field){
- $system["description"] = t("Displays a calendar to navigate old content.");
- $system["admin_help"] = t("Choose the starting \"day of the week\" for the displayed calendar block.");
- return $system[$field];
+ $output = "";
+
+ if ($field == "description") { $output = archive_help("admin/system/modules"); }
+ else if ($field == "admin_help") { $output = archive_help("admin/system/modules/archive"); };
+
+ return $output;
}
function archive_calendar($original = 0) {