You are here

function form_get_errors in Drupal 7

Same name and namespace in other branches
  1. 4 includes/form.inc \form_get_errors()
  2. 5 includes/form.inc \form_get_errors()
  3. 6 includes/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 modules/block/block.admin.inc
Form submission handler for block_admin_configure().
comment_preview in modules/comment/comment.module
Generate a comment preview.
drupal_process_form in includes/form.inc
Processes a form submission.
FormsElementsTableSelectFunctionalTest::formSubmitHelper in modules/simpletest/tests/form.test
Helper function for the option check test to submit a form while collecting errors.
FormsProgrammaticTestCase::submitForm in 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

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

Code

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