Closed (cannot reproduce)
Project:
Forward
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2012 at 06:52 UTC
Updated:
20 Dec 2012 at 20:26 UTC
Hi,
How do i redirect to node page after submitting the email form.
Need help.
With regards,
B.Sakthi
Comments
Comment #1
john.oltman commentedYou would have to do that in a hook_form_alter.
Comment #2
sakthiprogrammer commentedHi,
I am new to drupal customization.
Please can you give example.
with regards,
B.Sakthi
Comment #3
john.oltman commentedhttp://drupal.org/node/651106
Comment #4
john.oltman commentedMore info, add this to a module and then clear cache:
Comment #5
sakthiprogrammer commentedhi,
I wrote this code as separate custom module.
I enabled this custom module and cleared the caches.
But it did not redirect to node page.
With Regards,
B.Sakthi
Comment #6
john.oltman commentedWhere did it redirect to? Was the submit handler even reached? You may have to put watchdog calls into the submit handler to see what's in the $_GET variable and $form_state variable. You need to do a little debugging.
watchdog('my_module', '
');
Then go look at the Drupal log messages.
Comment #7
john.oltman commented