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.

11 calls to form_error()
admin_add_degree_form_submit in modules/admin/admin.degrees.inc
Submit handler for the add_degree_form.
admin_apply_draft_changes_form_submit in modules/admin/admin.module
Handles the actual moving of draft courses into production.
admin_copy_degree_form_submit in modules/admin/admin.degrees.inc
admin_duplicate_year_form_submit in modules/admin/admin.module
This function should perform the actual copy of data!
admin_edit_course_form_submit in modules/admin/admin.courses.inc

... See full list

File

includes/forms.inc, line 269

Code

function form_error($element_name, $message) {

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

}