Closed (fixed)
Project:
Legal
Version:
4.7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2007 at 01:54 UTC
Updated:
7 May 2011 at 02:32 UTC
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
Comment #1
revival commentedyep, I'd like this too, if possible
Thanks for a nice module
Comment #2
robert castelo commentedNo 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.
Comment #3
robert castelo commentedCan now easily be overridden by other modules.