_form_get_error

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

Related topics

10 calls to _form_get_error()

File

includes/common.inc, line 1026
Common functions that many Drupal modules will need to reference.

Code

function _form_get_error($name) {
  if (array_key_exists('form', $GLOBALS)) {
    return $GLOBALS['form'][$name];
  }
}
Login or register to post comments