_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
| Name | Description |
|---|---|
| Form generation | Functions to enable output of HTML forms and form elements. |
| Input validation | Functions to validate user input. |
Code
<?php
function _form_get_error($name) {
if (array_key_exists('form', $GLOBALS)) {
return $GLOBALS['form'][$name];
}
}
?> 