function form_get_errors

7.x form.inc form_get_errors()
6.x form.inc form_get_errors()

Returns an associative array of all errors.

Related topics

12 calls to form_get_errors()
block_admin_configure_submit in drupal-7.x/modules/block/block.admin.inc
Form submission handler for block_admin_configure().
comment_preview in drupal-7.x/modules/comment/comment.module
Generate a comment preview.
drupal_process_form in drupal-7.x/includes/form.inc
Processes a form submission.
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.
FormsProgrammaticTestCase::submitForm in drupal-7.x/modules/simpletest/tests/form.test
Helper function used to programmatically submit the form defined in form_test.module with the given values.

... See full list

File

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

Code

function form_get_errors() {
  $form = form_set_error();
  if (!empty($form)) {
    return $form;
  }
}