form_error

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

Register a form_error in the SESSION.

17 calls to form_error()
admin_add_degree_form_submit in modules/admin/admin.degrees.inc
Submit handler for the add_degree_form.
admin_add_degree_form_validate in modules/admin/admin.degrees.inc
Validate handler for 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_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.

... See full list

File

includes/render.inc, line 405

Code

function form_error($element_name, $message) {

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

}