_form_get_error

Versions
4.6
_form_get_error($name)

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

Related topics

▾ 10 functions call _form_get_error()

filter_form in modules/filter.module
Generate a selector for choosing a format in a form.
form_checkbox in includes/common.inc
Format a checkbox.
form_checkboxes in includes/common.inc
Format a set of checkboxes.
form_file in includes/common.inc
Format a file upload field.
form_password in includes/common.inc
Format a single-line text field that does not display its contents visibly.
form_radio in includes/common.inc
Format a radio button.
form_radios in includes/common.inc
Format a set of radio buttons.
form_select in includes/common.inc
Format a dropdown menu or scrolling selection box.
form_textarea in includes/common.inc
Format a multiple-line text field.
form_textfield in includes/common.inc
Format a single-line text field.

Code

includes/common.inc, line 1026

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