You are here

function date_widget_validate in Date 6

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. 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 415
Date forms and form themes and validation.

Code

function date_widget_validate($element, &$form_state) {
  $form_values = $form_state['values'];
  $field_name = $element['#field_name'];
  $fields = content_fields();
  $field = $form_state['#field_info'][$element['#field_name']];
  if (module_exists('date_repeat') && array_key_exists('rrule', $form_values[$field_name])) {
    include_once drupal_get_path('module', 'date') . '/date_repeat.inc';
    return _date_repeat_widget_validate($element, $form_state);
  }
}