function form_error

7.x render.inc form_error($element_name, $message, $bool_stop_further_validators = FALSE)
6.x render.inc form_error($element_name, $message)
5.x render.inc form_error($element_name, $message)

Register a form_error in the SESSION.

If bool_stop_futher_validators is set to TRUE, then (in system_handle_form_submit) we will not continue with any other form validators which may be present.

50 calls to form_error()
admin.courses.inc in modules/admin/admin.courses.inc
admin.degrees.inc in modules/admin/admin.degrees.inc
admin.groups.inc in modules/admin/admin.groups.inc
admin.module in modules/admin/admin.module
The administrative configurations for FlightPath.
admin_add_degree_form_validate in modules/admin/admin.degrees.inc
Validate handler for add_degree_form

... See full list

File

includes/render.inc, line 479

Code

function form_error($element_name, $message, $bool_stop_further_validators = FALSE) {

  $_SESSION ["fp_form_errors"][] = array("name" => $element_name, "msg" => $message);
  fp_add_message($message, "error");

  if ($bool_stop_further_validators) {
    $GLOBALS ['form_error_stop_further_validators'] = TRUE;
  }


}