How to redirect a save form in Drupal to a custom path

There are two ways to do this. $form_state['redirect'] on the node specific your-content-type_form_alter hook or $form['destination'] on the generic form_alter hook. Each can be useful in different situations. 'hidden', '#value' => 'suppliers'); } ?> So first alter the edit form to call your custom submission handler: Then override the redirect variable to suit: References: http://www.brianvuyk.com/story-type/changing-redirect-value-drupal-node-form-d6

Comments

Popular posts from this blog

PHP timezones explained

iPhone Internet Tethering settings