Drupal 6 CCK node form redirect issue
Posted
by swdv
on Stack Overflow
See other posts from Stack Overflow
or by swdv
Published on 2010-06-05T05:26:40Z
Indexed on
2010/06/05
6:22 UTC
Read the original article
Hit count: 229
Hi,
I am having trouble with a multi-step node form for a CCK content type. I set $form_state['redirect'] to a thank you page path, but it does not get redirected upon successful submission. Here is the code following documentation on the Drupal 5.x to 6.x form API at http://drupal.org/node/144132
function rnf_form_alter(&$form, &$form_state, $form_id) { // ... $form['#submit'][] = 'rnf_regret_form_submit'; }
function rnf_regret_form_submit($form, &$form_state) { $form_state['redirect'] = 'content/forget-thank-you'; }
Any help would be appreciated.
Thanks.
© Stack Overflow or respective owner