Project

General

Profile

Revision 389fb945

Added by Assos Assos over 4 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/includes/webform.components.inc
634 634
 * Field name validation for the webform unique key. Must be alphanumeric.
635 635
 */
636 636
function webform_component_edit_form_validate($form, &$form_state) {
637
  $node = $form['#node'];;
637
  $node = $form['#node'];
638 638

  
639 639
  if (!preg_match('/^[a-z0-9_]+$/i', $form_state['values']['form_key'])) {
640 640
    form_set_error('form_key', t('The form key %form_key is invalid. Please include only lowercase alphanumeric characters and underscores.', array('%form_key' => $form_state['values']['form_key'])));

Also available in: Unified diff