You are here

function date_repeat_dow_day_options_ordered in Date 6.2

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

File

date_repeat/date_repeat.module, line 94
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_ordered($week_start) {
  $unordered = date_repeat_dow_day_options(FALSE);
  if (variable_get('date_first_day', 1) > 0) {
    for ($i = 1; $i <= variable_get('date_first_day', 1); $i++) {
      $last = array_shift($weekdays);
      array_push($weekdays, $last);
    }
  }
  return $weekdays;
}