_form_get_error

Definition

_form_get_error($name)
includes/common.inc, line 1026

Description

Return the error message filed against the form with the specified name.

Related topics

Namesort iconDescription
Form generationFunctions to enable output of HTML forms and form elements.
Input validationFunctions to validate user input.

Code

<?php
function _form_get_error($name) {
  if (array_key_exists('form', $GLOBALS)) {
    return $GLOBALS['form'][$name];
  }
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.