function form_get_errors

7.x form.inc form_get_errors()
5.x form.inc form_get_errors()
6.x form.inc form_get_errors()
8.x form.inc form_get_errors(array &$form_state)

Returns an associative array of all errors.

Related topics

12 calls to form_get_errors()
block_admin_configure_submit in drupal/modules/block/block.admin.inc
Form submission handler for block_admin_configure().
comment_preview in drupal/modules/comment/comment.module
Generate a comment preview.
drupal_process_form in drupal/includes/form.inc
Processes a form submission.
FormsElementsTableSelectFunctionalTest::formSubmitHelper in drupal/modules/simpletest/tests/form.test
Helper function for the option check test to submit a form while collecting errors.
FormsProgrammaticTestCase::submitForm in drupal/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/includes/form.inc, line 1669
Functions for form and batch generation and processing.

Code

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