function hook_date_text_process_alter in Date 7.3
Same name and namespace in other branches
- 7.2 date.api.php \hook_date_text_process_alter()
Alter the date_text widget element.
Parameters
array $element: An associative array containing the properties of the date_text element.
array $form_state: A keyed array containing the current state of the form.
array $context: An associative array containing the following keys:
- form: Nested array of form elements that comprise the form.
See also
1 function implements hook_date_text_process_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- date_all_day_date_text_process_alter in date_all_day/
date_all_day.module - Implements hook_date_text_process_alter().
1 invocation of hook_date_text_process_alter()
- date_text_element_process in date_api/
date_api_elements.inc - Text date input form.
File
- ./
date.api.php, line 253 - Hooks provided by the Date module.
Code
function hook_date_text_process_alter(array &$element, array &$form_state, array $context) {
$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.
}
}