Project

General

Profile

Revision 76bdcd04

Added by Assos Assos almost 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/components/date.inc
409 409
function webform_validate_date($element, $form_state) {
410 410
  $field_types = array('day', 'month', 'year');
411 411

  
412
  // Determine if the user has specified a date. Hidden parts of the date will be submitted automatically.
412
  // Determine if the user has specified a date. Hidden parts of the date will
413
  // be submitted automatically.
413 414
  foreach ($field_types as $field_type) {
414 415
    if (!in_array($field_type, $element['#exclude']) && $element[$field_type]['#value'] !== '') {
415 416
      $field_found = TRUE;

Also available in: Unified diff