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/components/email.inc
61 61
    '#size' => 60,
62 62
    '#maxlength' => 127,
63 63
    '#weight' => 0,
64
    '#attributes' => ($component['value'] == '[current-user:mail]' && count(form_get_errors()) == 0) ? array('disabled' => TRUE) : array(),
64
    '#attributes' => ($component['value'] == '[current-user:mail]' && !form_get_errors()) ? array('disabled' => TRUE) : array(),
65 65
    '#id' => 'email-value',
66 66
  );
67 67
  $form['user_email'] = array(

Also available in: Unified diff