You are here

function date_month_names_untranslated in Date 7

Same name and namespace in other branches
  1. 5.2 date_api.module \date_month_names_untranslated()
  2. 6.2 date_api.module \date_month_names_untranslated()
  3. 6 date_api.module \date_month_names_untranslated()
  4. 7.3 date_api/date_api.module \date_month_names_untranslated()
  5. 7.2 date_api/date_api.module \date_month_names_untranslated()

An untranslated array of month names

Needed for css, translation functions, strtotime(), and other places that use the English versions of these words.

Return value

an array of month names

2 calls to date_month_names_untranslated()
date_month_names in date_api/date_api.module
A translated array of month names
date_month_names_abbr in date_api/date_api.module
A translated array of month name abbreviations

File

date_api/date_api.module, line 749
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_month_names_untranslated() {
  static $month_names;
  if (empty($month_names)) {
    $month_names = array(
      1 => 'January',
      2 => 'February',
      3 => 'March',
      4 => 'April',
      5 => 'May',
      6 => 'June',
      7 => 'July',
      8 => 'August',
      9 => 'September',
      10 => 'October',
      11 => 'November',
      12 => 'December',
    );
  }
  return $month_names;
}