function date_all_day_date_text_process_alter in Date 7.2
Same name and namespace in other branches
- 7.3 date_all_day/date_all_day.module \date_all_day_date_text_process_alter()
Implements hook_date_text_process_alter().
File
- date_all_day/
date_all_day.module, line 250 - Adds All Day functionality to the Date field.
Code
function date_all_day_date_text_process_alter(&$element, &$form_state, $context) {
// This hook lets us make changes to the date_select widget.
$all_day_id = !empty($element['#date_all_day_id']) ? $element['#date_all_day_id'] : '';
if ($all_day_id != '') {
// All Day handling on text dates works only if the user leaves the time
// out of the input value. There is no element to hide or show.
}
}