function form_clear_error

7.x form.inc form_clear_error()

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

Related topics

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

File

drupal-7.x/includes/form.inc, line 1626
Functions for form and batch generation and processing.

Code

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