I'm trying to create a rule where after a user is registered, an Organic Group is created, then I want to create a node and set the audience of this node to the recent created OG.

The problem is that there is an action to add content to an OG, but it's necessary to select an OG already created, I want to select it dynamically and using the OG I'm creating on the rule.

Is there a way to do this? Maybe using PHP, is there any PHP snippet to add content to a group?

Thanks

Comments

vasheck’s picture

subscribing....

socialnicheguru’s picture

subscribing. I want the exact same thing.

mitchell’s picture

Component: Rules Engine » Rules Core
Status: Active » Closed (won't fix)

Because this issue hasn't been updated recently, I'm closing it to clear up space in the issue queue. However, if you would still like to submit another support request or help answer other support requests, your efforts would be welcomed and appreciated. If you already found an answer, you can update the Rules documentation. If not, you may find that a recent update to the docs has provided more information, or that another issue has been fixed that you can find using the issue queue search tools.