You are here

function map_month in Drupal 5

Same name and namespace in other branches
  1. 4 includes/form.inc \map_month()
  2. 6 includes/form.inc \map_month()
  3. 7 includes/form.inc \map_month()

Helper function for usage with drupal_map_assoc to display month names.

Related topics

1 call to map_month()
profile_view_field in modules/profile/profile.module
1 string reference to 'map_month'
expand_date in includes/form.inc
Roll out a single date element.

File

includes/form.inc, line 1232

Code

function map_month($month) {
  return format_date(gmmktime(0, 0, 0, $month, 2, 1970), 'custom', 'M', 0);
}