summaryrefslogtreecommitdiff
path: root/modules/archive.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-11 16:21:48 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-11 16:21:48 +0000
commit86552cb4b6a83dc218ea0164ddb7c9670f224ddb (patch)
tree65d981eb5f2d5704e6decedef514fcf083361cc7 /modules/archive.module
parentc72bf4b5f79297eff699bd6207f0acdb3bfc4e30 (diff)
downloadbrdo-86552cb4b6a83dc218ea0164ddb7c9670f224ddb.tar.gz
brdo-86552cb4b6a83dc218ea0164ddb7c9670f224ddb.tar.bz2
- changed block, module and theme config pages to use checkboxes.
- coding style clean ups. - fixed taxonomy causing errors.
Diffstat (limited to 'modules/archive.module')
-rw-r--r--modules/archive.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/archive.module b/modules/archive.module
index 1d711a9a8..73d070676 100644
--- a/modules/archive.module
+++ b/modules/archive.module
@@ -146,9 +146,8 @@ function archive_page() {
$edit["day"] = date("d", $date);
}
- $start = str_replace("<b>:</b><br />", " ", form_select("", "year", ($edit["year"] ? $edit["year"] : date("Y")), $years) . form_select("", "month", ($edit["month"] ? $edit["month"] : date("m")), $months) . form_select("", "day", ($edit["day"] ? $edit["day"] : date("d")), $days) . form_submit(t("Show")));
- $start = str_replace("<p>", "", $start);
- $start = str_replace("</p>\n", " ", $start);
+ $start = form_select("", "year", ($edit["year"] ? $edit["year"] : date("Y")), $years) . form_select("", "month", ($edit["month"] ? $edit["month"] : date("m")), $months) . form_select("", "day", ($edit["day"] ? $edit["day"] : date("d")), $days) . form_submit(t("Show"));
+ $start = ereg_replace("<[/]?p>", "", $start);
$theme->box(t("Archives"), form($start));