form_get_errors

Versions
4.6 – 7
form_get_errors()

Return an associative array of all errors.

Related topics

▾ 11 functions call form_get_errors()

block_admin_configure_submit in modules/block/block.admin.inc
comment_form in modules/comment/comment.module
Generate the basic commenting form, for appending to a node or display on a separate page.
comment_preview in modules/comment/comment.module
Generate a comment preview.
drupal_build_form in includes/form.inc
Build and process a form based on a form id.
drupal_process_form in includes/form.inc
Processes a form submission.
install_run_task in ./install.php
Run 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
Theme the terms overview as a sortable list of terms.

Code

includes/form.inc, line 988

<?php
function form_get_errors() {
  $form = form_set_error();
  if (!empty($form)) {
    return $form;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.