You are here

function date_widget_validate in Date 7

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

Handle widget processing.

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

File

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

Code

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