Is there a way to set the destination page after an acceptance of the terms? I am using a custom login box that is supposed to take me to the homepage after login, but if the terms have changed, and I am taken to the 'accept new terms' page, it routes me to the user page after accepting. same with the registration page.

j

Comments

revival’s picture

yep, I'd like this too, if possible

Thanks for a nice module

robert castelo’s picture

No option at the moment, but fairly easy to write one - if you do I'll be happy to add it in.

1) add option to legal_administration() form

2) in legal_administration_submit() store as variable_set('legal_destination', $form_values['destination']);

3) add to legal_login_submit() return variable_get('legal_destination', 'user/'. $user->uid);

4) test thouroughly

It gets more difficult if you want to allow user ID substitution in the destination you type in.

robert castelo’s picture

Status: Active » Fixed

Can now easily be overridden by other modules.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.