Hello,
this is a follow up on the issue #244041: How can I add the registration code field to other content. That was a feature request, this is a support request.
**How can one pass the registration code used by a user to a Rules module rule?**
I would like to set the code as a the value of a field. This second part can be done with Rules and Content Profile.
Comments
Comment #1
Gabriel R. commentedComment #2
aidanlis commentedIt's already passed, just enable the rules submodule.
Comment #3
CardinalFang commentedI need to do something similar with a user profile field, where the taxonomy term associated with the regcode is saved as part of the profile.
I can make a rule that modifies the value of the profile field on the "User has used a registration code" event, but I have to create a separate rule for each term/code pair.
Is there a way to have one rule to rule them all? I don't know how to write a custom module.
Comment #4
aidanlis commentedThis could be done by passing the taxonomy term to rules, but please open a new feature request rather than hijacking this one.