diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-07 18:16:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-07 18:16:41 +0000 |
commit | 22c889e7c05b1c2dd98ad5e6b3547234a3f6596f (patch) | |
tree | 8b63c79053762af3284384a7e8c54a2d3e9b0d45 /modules/archive/archive.module | |
parent | fbc674f14301fd92f97f2506a72c22b7d51c1c43 (diff) | |
download | brdo-22c889e7c05b1c2dd98ad5e6b3547234a3f6596f.tar.gz brdo-22c889e7c05b1c2dd98ad5e6b3547234a3f6596f.tar.bz2 |
- Help system improvements: eliminated the _system hook. Patch by Michael.
- Bloggerapi module fixes. Patch by Kjartan.
- Coding style fixes. Patch by Michael.
Diffstat (limited to 'modules/archive/archive.module')
-rw-r--r-- | modules/archive/archive.module | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/modules/archive/archive.module b/modules/archive/archive.module index e9ce7e0fe..49130bdbf 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -5,7 +5,7 @@ function archive_help($section) { $output = ""; switch ($section) { - case 'admin/system/modules': + case 'admin/system/modules#description': $output = t("Displays a calendar to navigate old content."); break; case 'admin/system/modules/archive': @@ -15,14 +15,6 @@ function archive_help($section) { return $output; } -function archive_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) { global $user; @@ -64,7 +56,7 @@ function archive_calendar($original = 0) { // Extract last day of the month: $last = date("t", $start_of_month); - $end_of_month = mktime(23,59,59, $month, $last, $year); + $end_of_month = mktime(23, 59, 59, $month, $last, $year); $cache = cache_get("archive:calendar:$start_of_month"); @@ -97,7 +89,7 @@ function archive_calendar($original = 0) { $weekstart = variable_get("default_firstday", 0); // Last day of week - ($weekstart - 1 == -1 ) ? $lastday = 6 : $lastday = $weekstart - 1; + ($weekstart - 1 == -1) ? $lastday = 6 : $lastday = $weekstart - 1; // Generate the days of the week: $firstcolumn = mktime(0, 0, 0, 3, 20 + $weekstart, 1994); |