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

Gabriel R.’s picture

Title: Add the registration code field to other content » How to pass the registration code to Rules on registration?
aidanlis’s picture

Status: Active » Fixed

It's already passed, just enable the rules submodule.

CardinalFang’s picture

Version: 6.x-2.4 » 6.x-2.5
Status: Fixed » Active

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

aidanlis’s picture

Status: Active » Closed (fixed)

This could be done by passing the taxonomy term to rules, but please open a new feature request rather than hijacking this one.