form_get_errors

Versions
4.6 – 7
form_get_errors()

Return an associative array of all errors.

Related topics

▾ 7 functions call form_get_errors()

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.
field_ui_field_edit_form_validate in modules/field_ui/field_ui.admin.inc
Validate a field's settings.
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 966

<?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.