Skip navigation
Help

form_error

6 form.inc form_error(&$element, $message = '')
7 form.inc form_error(&$element, $message = '')

Flag an element as having an error.

Related topics

29 calls to form_error()

File

drupal/includes/form.inc, line 1597

Code

function form_error(&$element, $message = '') {
  form_set_error(implode('][', $element['#parents']), $message);
}