function form_get_errors

7.x form_get_errors()
5.x form_get_errors()
6.x form_get_errors()
8.x 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/
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/
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


drupal/includes/, line 1669
Functions for form and batch generation and processing.


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