summaryrefslogtreecommitdiff
path: root/modules/archive/archive.module
diff options
context:
space:
mode:
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) {