form_get_errors

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 7 form_get_errors()

Return an associative array of all errors.

Related topics

▾ 12 functions call form_get_errors()

block_admin_configure_submit in modules/block/block.admin.inc
Form submission handler for the block configuration form.
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.
FormsTestCase::testRequiredFields in modules/simpletest/tests/form.test
Check several empty values for required forms elements.
install_run_task in includes/install.core.inc
Runs an individual installation task.
node_form in modules/node/node.pages.inc
Generate the node add/edit form array.
node_preview in modules/node/node.pages.inc
Generate a node preview.
openid_authentication in modules/openid/openid.module
Authenticate a user or attempt registration.
system_settings_form in modules/system/system.module
Add default buttons to a form and set its prefix.
theme_taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
Returns HTML for a terms overview form as a sortable list of terms.

Code

includes/form.inc, line 1585

<?php
function form_get_errors() {
  $form = form_set_error();
  if (!empty($form)) {
    return $form;
  }
}
?>