Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b6e26521
Commit
b6e26521
authored
Jul 10, 2014
by
alexpott
Browse files
Issue
#2299499
by joshi.rohit100: Remove form_clear_error() as it is deprecated.
parent
57cf7f08
Changes
1
Show whitespace changes
Inline
Side-by-side
core/includes/form.inc
View file @
b6e26521
...
...
@@ -354,18 +354,6 @@ function form_set_error($name, array &$form_state, $message = '') {
\
Drupal
::
formBuilder
()
->
setErrorByName
(
$name
,
$form_state
,
$message
);
}
/**
* Clears all errors against all form elements made by form_set_error().
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::formBuilder()->clearErrors().
*
* @see \Drupal\Core\Form\FormBuilderInterface::clearErrors().
*/
function
form_clear_error
(
array
&
$form_state
)
{
\
Drupal
::
formBuilder
()
->
clearErrors
(
$form_state
);
}
/**
* Returns an associative array of all errors.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment