Projet

Général

Profil

Révision 8c72e82a

Ajouté par Assos Assos il y a environ 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/components/email.inc
176 176
    // pattern validation. This means that long format email addresses must be
177 177
    // rendered as text.
178 178
    $element['#attributes']['type'] = 'text';
179
    
179

  
180 180
    // html5 patterns have implied delimters and start and end patterns.
181 181
    // The are also case sensitive, not global, and not multi-line.
182 182
    // See https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation
......
255 255
  $component = $form_element['#webform_component'];
256 256
  $format = webform_variable_get('webform_email_address_format') == 'long' ? $component['extra']['format'] : 'short';
257 257
  webform_email_validate($form_element['#value'],
258
                         implode('][', $form_element ['#parents']),
259
                         TRUE,  // Required validation is done elsewhere.
260
                         $component['extra']['multiple'],
261
                         FALSE, // No tokens are allowed in user input.
262
                         $format);
258
    implode('][', $form_element ['#parents']),
259
    TRUE,  // Required validation is done elsewhere.
260
    $component['extra']['multiple'],
261
    FALSE, // No tokens are allowed in user input.
262
    $format);
263 263
}
264 264

  
265 265
/**

Formats disponibles : Unified diff