function form_error

7.x render.inc form_error($element_name, $message)
6.x render.inc form_error($element_name, $message)
4.x forms.inc form_error($element_name, $message)
5.x render.inc form_error($element_name, $message)

Register a form_error in the SESSION.

32 calls to form_error()
admin_add_degree_form_validate in modules/admin/admin.degrees.inc
Validate handler for add_degree_form
admin_apply_draft_changes_form_validate in modules/admin/admin.module
Before we apply changes, make sure the password is correct.
admin_copy_degree_form_validate in modules/admin/admin.degrees.inc
Validate handler. Make sure our allow_overwrite setting is working. Check for existing major code.
admin_duplicate_year_form_validate in modules/admin/admin.module
Before we duplicate the year, make sure the password is correct.
admin_edit_course_form_submit in modules/admin/admin.courses.inc

... See full list

File

includes/render.inc, line 459

Code

function form_error($element_name, $message) {

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

}