summaryrefslogtreecommitdiff
path: root/modules/profile.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile.module')
-rw-r--r--modules/profile.module6
1 files changed, 1 insertions, 5 deletions
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"));
}