@@ -210,7 +210,7 @@ function authorize_filetransfer_form_validate($form, &$form_state) {
catch(Exception$e){
// The format of this error message is similar to that used on the
// database connection form in the installer.
form_set_error('connection_settings',t('Failed to connect to the server. The server reports the following message: !message For more help installing or updating code on your server, see the <a href="@handbook_url">handbook</a>.',array(
form_set_error('connection_settings',$form_state,t('Failed to connect to the server. The server reports the following message: !message For more help installing or updating code on your server, see the <a href="@handbook_url">handbook</a>.',array(
form_error($element,t('%name must be a valid color.',array('%name'=>empty($element['#title'])?$element['#parents'][0]:$element['#title'])));
form_error($element,$form_state,t('%name must be a valid color.',array('%name'=>empty($element['#title'])?$element['#parents'][0]:$element['#title'])));
}
}
}
...
...
@@ -2908,7 +2908,7 @@ function _form_set_attributes(&$element, $class = array()) {
// Setting this error will cause the form to fail validation.
$this->setErrorByName('form_token',$this->t('The form has become outdated. Copy any unsaved work in the form below and then <a href="@link">reload this page</a>.',array('@link'=>$url)));
$this->setErrorByName('form_token',$form_state,$this->t('The form has become outdated. Copy any unsaved work in the form below and then <a href="@link">reload this page</a>.',array('@link'=>$url)));
$this->setError($elements,$this->t('!name cannot be longer than %max characters but is currently %length characters long.',array('!name'=>empty($elements['#title'])?$elements['#parents'][0]:$elements['#title'],'%max'=>$elements['#maxlength'],'%length'=>Unicode::strlen($elements['#value']))));
$this->setError($elements,$form_state,$this->t('!name cannot be longer than %max characters but is currently %length characters long.',array('!name'=>empty($elements['#title'])?$elements['#parents'][0]:$elements['#title'],'%max'=>$elements['#maxlength'],'%length'=>Unicode::strlen($elements['#value']))));