function map_month

Renders a month name for display.

Callback for drupal_map_assoc() within form_process_date().

Related topics

1 string reference to 'map_month'
form_process_date in drupal/core/includes/form.inc
Expands a date element into year, month, and day select elements.

File

drupal/core/includes/form.inc, line 3061
Functions for form and batch generation and processing.

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]);
}