1 form.inc map_month($month)

Renders a month name for display.

Callback for backdrop_map_assoc() within form_process_date().

Related topics

File

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

Code

function map_month($month) {
  $months = &backdrop_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]);
}