function date_week_days_untranslated in Date 6
Same name and namespace in other branches
- 5.2 date_api.module \date_week_days_untranslated()
- 6.2 date_api.module \date_week_days_untranslated()
- 7.3 date_api/date_api.module \date_week_days_untranslated()
- 7 date_api/date_api.module \date_week_days_untranslated()
- 7.2 date_api/date_api.module \date_week_days_untranslated()
An untranslated array of week days
Needed for css, translation functions, strtotime(), and other places that use the English versions of these words.
Return value
an array of week day names
3 calls to date_week_days_untranslated()
- date_php4.inc in date_php4/date_php4.inc 
- date_t in ./date_api.module 
- A version of the t() function for date parts that need translation.
- date_week_days in ./date_api.module 
- A translated array of week days
File
- ./date_api.module, line 130 
- 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_week_days_untranslated($refresh = TRUE) {
  static $weekdays;
  if ($refresh || empty($weekdays)) {
    $weekdays = array(
      0 => 'Sunday',
      1 => 'Monday',
      2 => 'Tuesday',
      3 => 'Wednesday',
      4 => 'Thursday',
      5 => 'Friday',
      6 => 'Saturday',
    );
  }
  return $weekdays;
}