function form_error

6.x form_error($element_name, $message)
4.x form_error($element_name, $message)
5.x form_error($element_name, $message)

Register a form_error in the SESSION.

31 calls to form_error()
admin_add_degree_form_validate in modules/admin/
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/
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/

... See full list


includes/, line 459


function form_error($element_name, $message) {

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