form_clear_error

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 form_clear_error()

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

Related topics

▾ 3 functions call 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.

Code

includes/form.inc, line 1578

<?php
function form_clear_error() {
  drupal_static_reset('form_set_error');
}
?>