diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-05 18:33:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-05 18:33:39 +0000 |
commit | 4131b785f7e36862cbcc937c4a395f0bb5fc5874 (patch) | |
tree | f7bca1660ea95e95fbd7df5d00ffefd04b125f89 /modules/archive | |
parent | 173dfb5950c655422f7d362272a7f6642f06f667 (diff) | |
download | brdo-4131b785f7e36862cbcc937c4a395f0bb5fc5874.tar.gz brdo-4131b785f7e36862cbcc937c4a395f0bb5fc5874.tar.bz2 |
- Help system improvements from Michael.
Diffstat (limited to 'modules/archive')
-rw-r--r-- | modules/archive/archive.module | 23 |
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) { |