From bd78422715c53b5383f567abcc79a5b8ba3dad82 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Feb 2004 15:19:36 +0000 Subject: - Patch 5592 by Goba: let drupal_map_assoc() rule. :-) - Renamed CHANGELOG to CHANGELOG.txt for Windows uses. --- modules/profile.module | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/profile.module') diff --git a/modules/profile.module b/modules/profile.module index 638332016..70e905c07 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -29,11 +29,7 @@ function _profile_init() { "avatar" => array("", t("Avatar or picture"), t("Your virtual face or picture. Maximum dimensions are %dimensions and the maximum size is %size kB.", array("%dimensions" => variable_get("profile_avatar_dimensions", "85x85"), "%size" => variable_get("profile_avatar_file_size", "30")))) ); - $GLOBALS["profile_days"][0] = t("day"); - for ($n = 1; $n <= 31; $n++) { - $GLOBALS["profile_days"][$n] = $n; - } - + $GLOBALS["profile_days"] = array_merge(array(0 => t("day")), drupal_map_assoc(range(1, 31))); $GLOBALS["profile_months"] = array(0 => t("month"), 1 => t("January"), 2 => t("February"), 3 => t("March"), 4 => t("April"), 5 => t("May"), 6 => t("June"), 7 => t("July"), 8 => t("August"), 9 => t("September"), 10 => t("October"), 11 => t("November"), 12 => t("December")); } -- cgit v1.2.3