function 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/includes/form.inc
Retrieves, populates, and processes a form.
FormsElementsTableSelectFunctionalTest::formSubmitHelper in drupal/modules/simpletest/tests/form.test
Helper function for the option check test to submit a form while collecting errors.
FormsTestCase::testRequiredFields in drupal/modules/simpletest/tests/form.test
Check several empty values for required forms elements.

File

drupal/includes/form.inc, line 1671
Functions for form and batch generation and processing.

Code

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