function form_clear_error

Clears all errors against all form elements made by form_set_error().

Related topics

4 calls to form_clear_error()
drupal_form_submit in includes/form.inc
Retrieves, populates, and processes a form.
FormsElementsTableSelectFunctionalTest::formSubmitHelper in modules/simpletest/tests/form.test
Helper function for the option check test to submit a form while collecting errors.
FormsElementsValidationTestCase::formSubmitHelper in modules/simpletest/tests/form.test
Helper function for the option check test to submit a form while collecting errors.
FormsTestCase::testRequiredFields in modules/simpletest/tests/form.test
Check several empty values for required forms elements.

File

includes/form.inc, line 1680

Code

function form_clear_error() {
    drupal_static_reset('form_set_error');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.