form_get_errors

Versions
4.6 – 7
form_get_errors()

Return an associative array of all errors.

Related topics

▾ 13 functions call form_get_errors()

block_admin_configure_submit in modules/block.module
block_box_add_submit in modules/block.module
blogapi_blogger_edit_post in modules/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_new_post in modules/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
comment_form in modules/comment.module
comment_form_add_preview in modules/comment.module
comment_save in modules/comment.module
Accepts a submission of new or changed comment content.
drupal_get_form in includes/form.inc
Processes a form array and produces the HTML output of a form. If there is input in the $_POST['edit'] variable, this function will attempt to validate it, using drupal_validate_form(), and then submit the form using drupal_submit_form().
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_add_preview in modules/node.module
node_preview in modules/node.module
Generate a node preview.
system_settings_form in modules/system.module
user_validate_picture in modules/user.module

Code

includes/form.inc, line 296

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