Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using the Registration Types module to create multiple registration forms to sign up users and assign them different roles. All these users must agree to the Terms and Conditions before account creation. For this I use Entity Legal.
I haven't found a way to have the "I agree" checkbox appear on the registration forms that are generated by Registration Types.
How can this be achieved?
Comment | File | Size | Author |
---|---|---|---|
#2 | entity-legal-2882401-2-D8.patch | 956 bytes | geroldk |
Comments
Comment #2
geroldk CreditAttribution: geroldk as a volunteer commentedCreated a patch implementing hook_form_alter to insert the checkbox on the sign up forms generated by Registration Types. Using a regex to find the form ID as generated by Registration Types.
Please review. Not sure if this is the right way to go. Any comments?
Also changed category to Feature request.
Comment #3
geroldk CreditAttribution: geroldk as a volunteer commentedComment #4
codesidekick CreditAttribution: codesidekick commentedComment #5
claudiu.cristeaThe code from #2 should not live in Entity Legal but in a custom module. Entity Legal knows to work with the core's user registration form. Closing this as "won't fix". If you feel that is wrong please reopen and add a comment arguing why.