Hi,

I have a rule that creates a term and a user. I'd like to know how can i implement a rule to force this new user with this new term created.

I know this doesn't exists yet, but i'm asking about some info of how to make it happen.
how should i begin? can you point me a procedure?

thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

carvalhar’s picture

FileSize
1.21 KB

I created a simple module:
This module mix Rules and User Forced Term, creating a new action to be used with Rules.
This action has two arguments, a term and a user, both configurable by rules.
It's attached here.
bye

carvalhar’s picture

Status: Active » Patch (to be ported)
FileSize
62.67 KB
1.18 KB

hi,

I'm uploading a patch against 6.x-1.x (dev) to provide a new rule action: "Force a term to a user"

Usage:
Create a rule, load a term, and the new action will appear at "User -> Force a term to a user"
Tested at a fresh install with Forced Term 6.x-1.x-dev and Rules 6.x-1.4

Use Case:
After user is created and matches some rule conditions, we can set a term to a user by a rule.

carvalhar’s picture

Status: Patch (to be ported) » Needs review

changing status accordingly with drupal documentation.

attiks’s picture

Patch looks good, for reference this started as a separate module: #1256318: User Forced Term by Rule

attiks’s picture

Version: 6.x-1.2 » 6.x-1.x-dev

updating version according to #2