function date_week_days_untranslated in Date 7.3
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 date_api/date_api.module \date_week_days_untranslated()
- 7.2 date_api/date_api.module \date_week_days_untranslated()
Constructs an untranslated array of week days.
Needed for CSS, translation functions, strtotime(), and other places that use the English versions of these words.
Parameters
bool $refresh: (optional) Whether to refresh the list. Defaults to TRUE.
Return value
array An array of week day names
2 calls to date_week_days_untranslated()
- date_week_days in date_api/
date_api.module - Returns a translated array of week names.
- date_week_days_abbr in date_api/
date_api.module - Constructs a translated array of week day abbreviations.
File
- date_api/
date_api.module, line 1262 - This module will make the date API available to other modules.
Code
function date_week_days_untranslated($refresh = TRUE) {
static $weekdays;
if ($refresh || empty($weekdays)) {
$weekdays = array(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
);
}
return $weekdays;
}