function _office_hours_select_value_callback in Office Hours 7
Callback for office_hours_select element.
Takes the #default_value and dissects it in hours, minutes and ampm indicator.
1 string reference to '_office_hours_select_value_callback'
- office_hours_element_info in ./
office_hours.module - Implements FAPI hook_element_info().
File
- includes/
office_hours.elements.inc, line 113 - Office hours form elements and their theming and validation.
Code
function _office_hours_select_value_callback($element, $input = FALSE, &$form_state) {
return _office_hours_field_widget_time_parse($element['#default_value'], $element['#field_settings']['hoursformat']);
}