Closed adam-clarey closed 8 years ago
This depends on #62 before it can be merged.
Example validate handers:
iris.modules.forms.registerHook("hook_form_validate", 0, function (thisHook, data) { data.errors.push({ message : "Generic error" }); thisHook.finish(true, data); }); iris.modules.forms.registerHook("hook_form_validate_login", 0, function (thisHook, data) { data.errors.push({ message : "specific error", field: "username" }); thisHook.finish(true, data); });```
This depends on #62 before it can be merged.
Example validate handers: