function form_clear_error in Drupal 7
Clears all errors against all form elements made by form_set_error().
Related topics
3 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.
- FormsTestCase::testRequiredFields in modules/
simpletest/ tests/ form.test - Check several empty values for required forms elements.
File
- includes/
form.inc, line 1677 - Functions for form and batch generation and processing.
Code
function form_clear_error() {
drupal_static_reset('form_set_error');
}