diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-21 09:42:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-21 09:42:14 +0000 |
commit | 61ebf7b56b5a17e87352ca004d08a91855eb2c9e (patch) | |
tree | ef9173756fad6c8a108285b987cf305c8eb32850 /modules/profile.module | |
parent | 6e95094c8e3428044b3ddddf937e55730eafda51 (diff) | |
download | brdo-61ebf7b56b5a17e87352ca004d08a91855eb2c9e.tar.gz brdo-61ebf7b56b5a17e87352ca004d08a91855eb2c9e.tar.bz2 |
- Patch #37401 by webchick: fixed dependency of date selection form element on profile module.
Diffstat (limited to 'modules/profile.module')
-rw-r--r-- | modules/profile.module | 10 |
1 files changed, 1 insertions, 9 deletions
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') { |