I have a complex for that for various reasons I am validating in the _submit hook instead of the _validate. This is working great with the exception that the error
class isn't getting added to the form elements.
Is there something simple I am missing or do I need to use form_get_errors
and set the classes myself?
(The reason I am doing validation in submit is because I want to save the form data regardless of if it is valid or not.)
hook_submit()
, is the code for a module implementing a content type?