function form_get_errors

form_get_errors()

Returns an associative array of all errors.

Related topics

File

includes/form.inc, line 1676
Functions for form and batch generation and processing.

Code

function form_get_errors() {
  $form = form_set_error();
  if (!empty($form)) {
    return $form;
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!form.inc/function/form_get_errors/7.x