function date_repeat_dow_day_options in Date 6
Same name and namespace in other branches
- 8 date_repeat/date_repeat.module \date_repeat_dow_day_options()
- 5.2 date_repeat/date_repeat.module \date_repeat_dow_day_options()
- 6.2 date_repeat/date_repeat.module \date_repeat_dow_day_options()
- 7.3 date_repeat/date_repeat.module \date_repeat_dow_day_options()
- 7 date_repeat/date_repeat.module \date_repeat_dow_day_options()
- 7.2 date_repeat/date_repeat.module \date_repeat_dow_day_options()
Helper function for FREQ options.
Translated and untranslated arrays of the iCal day of week names. We need the untranslated values for date_modify(), translated values when displayed to user.
6 calls to date_repeat_dow_day_options()
- date_repeat_days_ordered in date_repeat/
date_repeat.module - Shift the array of iCal day names into the right order for a specific week start day.
- date_repeat_dow2day in date_repeat/
date_repeat.module - Translate a day of week position to the iCal day name.
- date_repeat_dow_day_options_ordered in date_repeat/
date_repeat.module - date_repeat_dow_options in date_repeat/
date_repeat.module - Helper function for BYDAY options.
- date_repeat_rrule_description in date_repeat/
date_repeat.module - Build a description of an iCal rule.
File
- date_repeat/
date_repeat.module, line 66 - This module creates a form element that allows users to select repeat rules for a date, and reworks the result into an iCal RRULE string that can be stored in the database.
Code
function date_repeat_dow_day_options($translated = TRUE) {
return array(
'SU' => $translated ? t('Sunday') : 'Sunday',
'MO' => $translated ? t('Monday') : 'Monday',
'TU' => $translated ? t('Tuesday') : 'Tuesday',
'WE' => $translated ? t('Wednesday') : 'Wednesday',
'TH' => $translated ? t('Thursday') : 'Thursday',
'FR' => $translated ? t('Friday') : 'Friday',
'SA' => $translated ? t('Saturday') : 'Saturday',
);
}