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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

geroldk created an issue. See original summary.

geroldk’s picture

Category: Support request » Feature request
Status: Active » Needs work
FileSize
956 bytes

Created 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.

geroldk’s picture

Status: Needs work » Needs review
codesidekick’s picture

Assigned: Unassigned » Deciphered
claudiu.cristea’s picture

Assigned: Deciphered » Unassigned
Status: Needs review » Closed (won't fix)

The 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.