You are here

function _office_hours_arrange_day in Office Hours 6

Same name and namespace in other branches
  1. 6.2 office_hours.module \_office_hours_arrange_day()
1 call to _office_hours_arrange_day()
theme_office_hours_multiple_values in ./office_hours.theme.inc
copied from content module's theme_content_multiple_values- we're taking out the draggable feature.

File

./office_hours.module, line 306
Creates a field and widget for inserting working or office hours per day

Code

function _office_hours_arrange_day($items) {
  $first = variable_get('date_first_day', 0);
  while ($first > 0) {
    $shifted = array_shift($items);
    $items[] = $shifted;
    if (isset($items[13])) {
      $shifted = array_shift($items);
      $items[] = $shifted;
    }
    $first--;
  }
  return $items;
}