[support] Send Users to Page after Register

Metzler, David metzlerd at evergreen.edu
Mon Feb 11 15:45:48 UTC 2008


You might consider writing a little module that uses hook_user in
conjunction with drupal_goto to redirect users to a different page: 

See http://api.drupal.org/api/function/hook_user/5 for more info on the
hooks.  

You'd probably have to keep track of it somehow with state, cause you
really need to watch for $op='register' and then do the redirect at
$op='after_uptdate'.

This might get tricky given the fact the user insert might be creating
sessions at the same time, but maybe not. 

It's an idea anyway. 

-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Fred Jones
Sent: Monday, February 11, 2008 3:27 AM
To: support at drupal.org
Subject: Re: [support] Send Users to Page after Register

Davide Michel 'ZioBudda' Morelli wrote:
> Fred Jones ha scritto:
>> After a user registers, how can I send him to a certain page, aside
from 
>> the home page? Using hook_user?
>>
>> Can I get a hint as to how to set this up?
>>
>> Thanks!
>>   
> user/register?destination=URL

user module doesn't appear to expose this link to theming so I tried 
editing the module directly but it didn't work. Anyone know where I can 
make this happen?

Thanks.
-- 
[ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list