From 61ebf7b56b5a17e87352ca004d08a91855eb2c9e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Nov 2005 09:42:14 +0000 Subject: - Patch #37401 by webchick: fixed dependency of date selection form element on profile module. --- modules/profile.module | 10 +--------- modules/profile/profile.module | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) (limited to 'modules') diff --git a/modules/profile.module b/modules/profile.module index dc626b8d0..43adbe58d 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -286,7 +286,7 @@ function profile_view_field($user, $field) { $replace = array('d' => sprintf('%02d', $value['day']), 'j' => $value['day'], 'm' => sprintf('%02d', $value['month']), - 'M' => _profile_map_month($value['month']), + 'M' => map_month($value['month']), 'Y' => $value['year']); return strtr($format, $replace); case 'list': @@ -398,14 +398,6 @@ function _profile_update_user_fields(&$fields, $account) { } } - -/** - * Helper function for usage with drupal_map_assoc - */ -function _profile_map_month($month) { - return format_date(gmmktime(0, 0, 0, $month, 2, 1970), 'custom', 'M', 0); -} - function profile_validate_profile($edit, $category) { if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') { diff --git a/modules/profile/profile.module b/modules/profile/profile.module index dc626b8d0..43adbe58d 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -286,7 +286,7 @@ function profile_view_field($user, $field) { $replace = array('d' => sprintf('%02d', $value['day']), 'j' => $value['day'], 'm' => sprintf('%02d', $value['month']), - 'M' => _profile_map_month($value['month']), + 'M' => map_month($value['month']), 'Y' => $value['year']); return strtr($format, $replace); case 'list': @@ -398,14 +398,6 @@ function _profile_update_user_fields(&$fields, $account) { } } - -/** - * Helper function for usage with drupal_map_assoc - */ -function _profile_map_month($month) { - return format_date(gmmktime(0, 0, 0, $month, 2, 1970), 'custom', 'M', 0); -} - function profile_validate_profile($edit, $category) { if ($_GET['q'] == 'user/register' || $_GET['q'] == 'admin/user/create') { -- cgit v1.2.3