Posted by maximer on February 4, 2013 at 10:35am
Hi,
after searching a few hours, I didn't find a concrete solution to my problem:
How can I change the messages after submitting a form (like Email is required). Can I do this through the theme layer, in the template.php file?
Thanks for your feedback
Maxime
Comments
By default Drupal will use
By default Drupal will use the name of the field so for an email field it will say 'Email field is required'.
To change this I would use hook_form_alter to change the validation function so that you can display your own validation errors.
If you aren't familiar with hook_form_alter or the form api I would recommend installing the examples module and having a look at the form examples there.
http://api.drupal.org/hook_form_alter
http://drupal.org/project/examples
Cheers
Tom
Bristol based Drupal web design
BlackLabel Web Design