You are here

function date_widget_validate in Date 6.2

Same name and namespace in other branches
  1. 5.2 date/date_elements.inc \date_widget_validate()
  2. 6 date/date_elements.inc \date_widget_validate()
  3. 7 date_elements.inc \date_widget_validate()

Handle widget processing.

1 string reference to 'date_widget_validate'
_date_widget in date/date_elements.inc
Private implementation of hook_widget().

File

date/date_elements.inc, line 546
Date forms and form themes and validation.

Code

function date_widget_validate($element, &$form_state) {
  $field = $form_state['#field_info'][$element['#field_name']];
  if (module_exists('date_repeat') && $field['repeat'] == 1) {
    module_load_include('inc', 'date', 'date_repeat');
    return _date_repeat_widget_validate($element, $form_state);
  }
}