[development] Path Redirect Location Storage

Earnie Boyd earnie at users.sourceforge.net
Tue Mar 24 19:48:11 UTC 2009


Quoting Steve Edwards <killshot91 at comcast.net>:

>
> However, if he is a new user and needs to create an account first, he
> clicks on the "Create New Account" link, which takes him to
> /user/register (without ?destination).  Therefore, when he is done
> registering, there is no ?destination parameter for the Forms API, so
> he stays at the user screen.
>
> The way the module does the redirect after that is in
> hook_form_alter().  It looks for the 'node_checkout_redirect' variable
> on the user screens, and if it sees it, redirects to whatever is stored
> there.  But, as I mentioned, since $_SESSION is wiped out at the end of
> drupal_goto(), it doesn't know that the redirect needs to happen.
> That's why I'm looking for an alternate storage location for that
> redirection location.
>

How about the $form_state['storage']?  http://drupal.org/node/144132

--
Earnie
   http://r-feed.com
   Make a Drupal difference and review core patches.

-- http://for-my-kids.com/  -- http://www.4offer.biz/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the development mailing list