form_get_errors

Versions
4.6 – 7
form_get_errors()

Return an associative array of all errors.

Related topics

▾ 17 functions call form_get_errors()

block_admin_configure_submit in modules/block/block.admin.inc
blogapi_blogger_edit_post in modules/blogapi/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_new_post in modules/blogapi/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
comment_form in modules/comment/comment.module
Generate the basic commenting form, for appending to a node or display on a separate page.
comment_form_add_preview in modules/comment/comment.module
Form builder; Generate and validate a comment preview form.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
drupal_get_form in includes/form.inc
Retrieves a form from a constructor function, or from the cache if the form was built in a previous page-load. The form is then passed on for processing, after and rendered for display if necessary.
drupal_process_form in includes/form.inc
This function is the heart of form API. The form gets built, validated and in appropriate cases, submitted.
install_verify_settings in ./install.php
Verify existing settings.php
multipage_form_example_pre_render in developer/examples/multipage_form_example.module
The #pre_render of a form allows us to make changes AFTER validation (unlike hook_form_alter()), but BEFORE the form has actually been displayed. We use it to control which form elements are shown, which are hidden, and which values to set based on...
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.
user_authenticate in modules/user/user.module
Try to log in the user locally.
user_external_login in modules/user/user.module
Perform standard Drupal login operations for a user object.

Code

includes/form.inc, line 814

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