function date_content_repeat_dow_options in Date 7
Same name and namespace in other branches
- 8 date_repeat_field/date_repeat_field.devel_generate.inc \date_content_repeat_dow_options()
- 5.2 date/date_content_generate.inc \date_content_repeat_dow_options()
- 6.2 date/date_content_generate.inc \date_content_repeat_dow_options()
- 7.3 date_repeat_field/date_repeat_field.devel_generate.inc \date_content_repeat_dow_options()
- 7.2 date_repeat_field/date_repeat_field.devel_generate.inc \date_content_repeat_dow_options()
Helper function for BYDAY options.
Creates options like -1SU and 2TU Omit options that won't find many matches, like 5th Sunday.
1 call to date_content_repeat_dow_options()
- date_devel_generate in ./
date.devel_generate.inc - Implementation of Devel module's hook_content_generate().
File
- ./
date.devel_generate.inc, line 177 - Date Devel Generate code.
Code
function date_content_repeat_dow_options() {
$options = array();
foreach (date_repeat_dow_count_options() as $count_key => $count_value) {
foreach (date_repeat_dow_day_options() as $dow_key => $dow_value) {
if ($count_key != 5 && $count_key != -5) {
$options[$count_key . $dow_key] = $count_value . ' ' . $dow_value;
}
}
}
return $options;
}