Closed (duplicate)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2012 at 11:32 UTC
Updated:
26 May 2012 at 19:34 UTC
I have two custom actions. One of them provides a "text" variable and the other provides a "uri" variable.
Everything works fine after executing both actions if I use the data selector, but I have no replacement if I try to use them in direct input mode.
Since I want to send an email with both variables in the body I'm stuck with direct input mode.
What should I do? Should I implement token support of any kind?
Comments
Comment #1
e0ipsoThese are my actions with provided variables:
And this is my test rule:
Comment #2
e0ipsoAnyone else with this question?
Comment #3
Refineo commented+1
how to use token variables in Rules properly ?
Comment #4
mradcliffeIt seems like the only way to do this is to fake an entity like in Entity API's system.info.inc, and use that as a type.
Comment #5
torotil commentedThis is a duplicate of http://drupal.org/node/812058 .
Comment #6
e0ipsoAs you may see the category from issue #812058 is task and the category for this issue is support request.
I do not need this feature to be integrated in Rules (although it would be cool), this means I need some directions on how to use Token, Entity Token (or whatever) to add token replacement support inside Rules for my custom variables.
Since the other issue has been opened for a year now, I think it is safe to state that a new way to come with a solution is needed.
I think both posters have the same problem, I'll give you that.
Comment #7
mitchell commentedPlease test the patch in the other issue. I'm not trying to discourage your support request, just move things along.