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()

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_post in modules/comment.module
comment_preview in modules/comment.module
contact_mail_user in modules/contact.module
menu_add_menu in modules/menu.module
Menu callback; handle the adding of a new menu.
menu_edit_item in modules/menu.module
Menu callback; dispatch to the appropriate menu item edit function.
node_form in modules/node.module
Generate the node editing form.
node_preview in modules/node.module
Generate a node preview, including a form for further edits.
node_submit in modules/node.module
Accepts a submission of new or changed node content.
path_save in modules/path.module
Verify that a new URL alias is valid, and save it to the database.
profile_admin_add in modules/profile.module
Menu callback; adds a new field to all user profiles.
profile_admin_edit in modules/profile.module
Menu callback; displays the profile field editing form.
user_admin_create in modules/user.module
user_edit in modules/user.module
user_register in modules/user.module
user_validate_picture in modules/user.module

Code

includes/common.inc, line 1017

<?php
function form_get_errors() {
  if (array_key_exists('form', $GLOBALS)) {
    return $GLOBALS['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.