[development] drupal_goto an external destination

Ivan Sergio Borgonovo mail at webthatworks.it
Tue May 6 09:11:32 UTC 2008


On Tue, 6 May 2008 00:49:27 -0700
Dave Cohen <drupal at dave-cohen.com> wrote:

> I need to send the user to an external URL after a form submit.  My

return the target at the end of the _submit hook D5.
fill $form_state['redirect'] in D6.

You can return an array that will be fed to drupal_goto

If there is just one place where you're going to redirect users
unconditionally you can set it in the form definition with #redirect.

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the development mailing list