You are here

function map_month in Drupal 4

Same name and namespace in other branches
  1. 5 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.module
1 string reference to 'map_month'
expand_date in includes/form.inc
Roll out a single date element.

File

includes/form.inc, line 876

Code

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