function date_week_days_untranslated in Date 7
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()
- 6 date_api.module \date_week_days_untranslated()
- 7.3 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
2 calls to date_week_days_untranslated()
- date_week_days in date_api/
date_api.module - A translated array of week days
- date_week_days_abbr in date_api/
date_api.module - An translated array of week day abbreviations.
File
- date_api/
date_api.module, line 803 - 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;
}