Closed (fixed)
Project:
Revisioning
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Nov 2011 at 23:45 UTC
Updated:
31 Jan 2012 at 05:20 UTC
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
Comment #1
rdeboerWell 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.
Comment #2
rdeboerComment #3
dschrier commentedIn
revisioning_rules_event_info(), if you change:'arguments' => _revisioning_rules_event_arguments(),to:
'variables' => _revisioning_rules_event_arguments(),the appropriate variables/tokens become available.
Comment #4
rdeboerThanks!
Comment #5
rdeboerChecked into Git, so will be available in the next snapshot, i.e. 17 Jan 2012.