By smokingtrucks on
Hey,
I've created a contact form in template.php, which is displayed in page-front.tpl.php. Here's the code in template.php:
function mytheme_get_contact_form() {
require_once drupal_get_path('module', 'contact') .'/contact.pages.inc';
return drupal_get_form('contact_mail_page');
}
What I'd like to do, is to redirect the form if it fails validation, or passes validation, to the contact page, mysite.com/contact. The reason being, there's no convenient place on the front page to display the error messages, it's a design constraint. Is there any easy way to accomplish this? Any help would be greatly appreciated!
Cheers,
Neal