You are here

function _office_hours_show_ampm in Office Hours 6

Same name and namespace in other branches
  1. 7 office_hours.module \_office_hours_show_ampm()
1 call to _office_hours_show_ampm()
office_hours_field_settings in ./office_hours.module
Implementation of hook_field_settings().

File

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

Code

function _office_hours_show_ampm($hours) {
  foreach ($hours as $key => $hour) {
    if (!empty($hour)) {
      $hours[$key] = $hour . ":00 (" . _office_hours_convert_to_ampm($hour) . ")";
    }
  }
  return $hours;
}