form_error
function form_error
form_error(&$element, $message = '')
Flags an element as having an error.
Related topics
File
- includes/form.inc, line 1704
- Functions for form and batch generation and processing.
Code
function form_error(&$element, $message = '') { form_set_error(implode('][', $element['#parents']), $message); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!form.inc/function/form_error/7.x