function map_month

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 form.inc map_month($month)
cle7 form.inc map_month($month)
elmsmedia7 form.inc map_month($month)
icor7 form.inc map_month($month)
meedjum_blog7 form.inc map_month($month)
mooc7 form.inc map_month($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'
form_process_date in includes/form.inc
Expands a date element into year, month, and day select elements.

File

includes/form.inc, line 3032
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]);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.