function date_all_day_date_select_pre_validate_alter in Date 7.3
Same name and namespace in other branches
- 8 date_all_day/date_all_day.module \date_all_day_date_select_pre_validate_alter()
- 7.2 date_all_day/date_all_day.module \date_all_day_date_select_pre_validate_alter()
Implements hook_date_select_pre_validate_alter().
File
- date_all_day/
date_all_day.module, line 258 - Adds All Day functionality to the Date field.
Code
function date_all_day_date_select_pre_validate_alter(&$element, &$form_state, &$input) {
// This hook lets us alter the element or the form_state before the rest of
// the date_select validation gets fired. Let Date module massage the format
// for all day values so they will pass validation. The All day flag, if
// used, actually exists on the parent element.
return date_all_day_value($element, $form_state);
}