I'm new to Drupal and am working on a project for a client who for some reason would like to require the user to accept the Terms & Conditions every time they login, instead of only when changes have been made. Which file(s)/line(s) of code should I edit in order to accomplish this change?
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | legal-accept_terms_on_every_login-2757535-10.patch | 3.41 KB | abarpetia |
| #8 | Before.png | 25.36 KB | Dev1.addweb |
| #8 | After.png | 27.91 KB | Dev1.addweb |
| #8 | accept_terms_on_every-2757535-8.patch | 3.71 KB | Dev1.addweb |
| #3 | accept_terms_on_every-2757535-3.patch | 1.17 KB | Dev1.addweb |
Comments
Comment #2
stephaniepotter commentedComment #3
Dev1.addweb commentedPFA patch which works well!
Comment #4
Dev1.addweb commentedComment #5
abarpetia commentedGreat patch! I verified that it worked, and I would recommend to commit it.
Comment #6
Dev1.addweb commentedThanks Abarpetia!
Comment #7
abarpetia commentedSorry, changing status back to "need work". Currently, this patch forcing all users to accept T&C every time they login. This may not be the case for all other users.
It will be worth of having some way to disable this feature. May be a checkbox on module's configuration page.
Comment #8
Dev1.addweb commentedAdded checkbox on modules configuration page to enable/disable the feature to accept T&C every time user login.
PFA patch "accept_terms_on_every-2757535-8.patch"
Comment #9
Dev1.addweb commentedComment #10
abarpetia commentedThanks for the new patch.
I have tested attached #8 patch on fresh installation and it's perfectly worked for me. Just re-rolled against dev branch (Do not include me in credits)
+1 to commit.
Comment #11
abarpetia commentedComment #12
Dev1.addweb commented@Robert: Please take a pull and commit the patch. Would be awaiting for credit.
Comment #14
robert castelo commentedReleased in Legal 7.x-1.6
Thanks for the patches Deepali Agarwal, and for reviewing and re-rolling Aniket Barpetia.
I made a few changes:
* Moved option to a Legal Configuration page so that these kind of option can be enabled/disabled without having to create a new T&Cs revision
* Added t() for translation of strings
* Removed unused rendering of form elements
* Ammended logic to make it a bit clearer