1 date.api.php hook_date_year_range_process_alter(&$element, &$form_state, $context)

Alter the date_year_range widget element.

Parameters

array $element: An associative array containing the properties of the date_select 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

date_year_range_element_process()

File

core/modules/date/date.api.php, line 370
Hooks provided by the Date module.

Code

function hook_date_year_range_process_alter(&$element, &$form_state, $context) {
  // @todo.
}