Flags an element as having an error.
... See full list
function form_error(&$element, $message = '') { form_set_error(implode('][', $element['#parents']), $message); }