I may be doing this wrong, but it seems there is something missing in the rules integration. I want to do something basic like let a user know his revision has been published. So I create a new rule for the event "Pending revision has been published." But when I add actions to the rule, there are no tokens available to me for the node in question, so I can't grab the node author for the email recipient or the title and other info for the body. I'm not sure what good having that rule event does us if there's no node variable available for actions.

This seems to be true whether or not the patch in #1240454: Rules integration for conditions needs updating is applied.

Comments

rdeboer’s picture

Well that patch you mention is applied (7.x-1.x-dev), so we're on the same page.
Need some more time to look into this. Or perhaps someone else can chip in.

rdeboer’s picture

Category: bug » feature
dschrier’s picture

In revisioning_rules_event_info(), if you change:

'arguments' => _revisioning_rules_event_arguments(),

to:

'variables' => _revisioning_rules_event_arguments(),

the appropriate variables/tokens become available.

rdeboer’s picture

Thanks!

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Fixed

Checked into Git, so will be available in the next snapshot, i.e. 17 Jan 2012.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.