form_get_errors

  1. drupal
    1. 4.7
    2. 5
    3. 6 form.inc
    4. 7 form.inc
Versions
4.7 – 7 form_get_errors()

Return an associative array of all errors.

Related topics

▾ 15 functions call form_get_errors()

block_admin_configure_submit in modules/block/block.module
block_box_form_submit in modules/block/block.module
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
comment_form_add_preview in modules/comment/comment.module
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 builder function, passes it on for processing, and renders the form or redirects to its destination as appropriate. In multi-step form scenarios, it handles properly processing the values using the previous step's form…
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_add_preview in modules/node/node.module
node_preview in modules/node/node.module
Generate a node preview.
system_settings_form in modules/system/system.module
Add default buttons to a form and set its prefix
user_validate_picture in modules/user/user.module

Code

includes/form.inc, line 607

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