Error helper in external form
Permalink 1 user found helpful
Kind of a newb question, but how does one go about putting together an external form that displays validation errors, i.e. invalid email address, incomplete field, etc. I'm referencing the c5 login and register pages which use:
But what do I do to make the errors display on the page? I can't figure out where or how to call up all those $e's.
$e = Loader::helper('validation/error'); $e->add(t('Some kind of error message'));
But what do I do to make the errors display on the page? I can't figure out where or how to call up all those $e's.
The error handler actually has an "output" function that does the same thing, except that it gives the <ul> a class of "ccm-error".