Skip navigation
Help

map_month

6 form.inc map_month($month)
7 form.inc map_month($month)

Helper function for usage with drupal_map_assoc to display month names.

Related topics

1 call to map_month()

1 string reference to 'map_month'

File

drupal/includes/form.inc, line 2870

Code

function map_month($month) {
  $months = &drupal_static(__FUNCTION__, array(
    1 => 'Jan', 
    2 => 'Feb', 
    3 => 'Mar', 
    4 => 'Apr', 
    5 => 'May', 
    6 => 'Jun', 
    7 => 'Jul', 
    8 => 'Aug', 
    9 => 'Sep', 
    10 => 'Oct', 
    11 => 'Nov', 
    12 => 'Dec',
  ));
  return t($months[$month]);
}