Closed (fixed)
Project:
Contact form blocks
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2010 at 17:46 UTC
Updated:
11 Feb 2011 at 13:23 UTC
Jump to comment: Most recent
Comments
Comment #1
fuerst commentedLooks like the Custom (Form) destination module can help you by redirecting the user after submitting one of the forms generated by Contact Form Blocks.
Comment #2
OneTwoTait commentedIt worked! Thanks. :)
Comment #3
Anonymous (not verified) commentedHow can i do the same with Drupal Form API?
This code does not work. Don't wanna install a whole new module just for a simple functionality.
Comment #4
fuerst commentedMay be another module is resetting the
$form['#redirect']value. Also make sure you modify the correct form -$form_idof any contact form block can be checked by code like this:Alternatively you may use
$form['#submit'][] = 'your_redirect_callback';inhook_form_alter().your_redirect_callback()may set the$form_state['redirect']value. That's how the contact_redirect module is doing the redirect.