You are here

function date_repeat_dow_options in Date 7

Same name and namespace in other branches
  1. 8 date_repeat/date_repeat.module \date_repeat_dow_options()
  2. 5.2 date_repeat/date_repeat.module \date_repeat_dow_options()
  3. 6.2 date_repeat/date_repeat.module \date_repeat_dow_options()
  4. 6 date_repeat/date_repeat.module \date_repeat_dow_options()
  5. 7.3 date_repeat/date_repeat.module \date_repeat_dow_options()
  6. 7.2 date_repeat/date_repeat.module \date_repeat_dow_options()

Helper function for BYDAY options.

Creates options like -1SU and 2TU

1 call to date_repeat_dow_options()
_date_repeat_rrule_process in date_repeat/date_repeat_form.inc
Generate the repeat setting form.

File

date_repeat/date_repeat.module, line 113
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_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) {
      $options[$count_key . $dow_key] = $count_value . ' ' . $dow_value;
    }
  }
  return $options;
}