Révision 389fb945
Ajouté par Assos Assos il y a presque 5 ans
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']))); |
Formats disponibles : Unified diff
Weekly update of contrib modules