Closed (won't fix)
Project:
Actions
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2007 at 17:20 UTC
Updated:
3 Feb 2013 at 19:39 UTC
I had to do this for my purposes and thought that people might be interested in this as well.
Thanks for the great module!
Waldemar
| Comment | File | Size | Author |
|---|---|---|---|
| actions_token.patch | 2.95 KB | Waldemar |
Comments
Comment #1
clivesj commentedThank You.
I have applied the patch and now the "replacement pattern" link is showing beautifully on the email-action page. When I click the link I get all the avaible tokens.
When I insert the tokens in the emails however, the valuas are not transmitted to the email. So:
In the email-template i put: name=[field_myname_raw]
When i receive the mail it shows: name=[field_myname_raw] iso name:John Doe
Do I have to do anything additionally to get it working?
Thanks
Comment #2
clivesj commentedanyone to help me on this one?
b.t.w. the non-cck-fields are displayed properly
Comment #3
clivesj commentedAnyone??
I have checked everything but the token does not get replaced by the replacement values.
Thanks
Comment #4
clivesj commentedSorry, my problem was self-induced. I was using cck-field that weren't used in de content-type
The patch works perfectly
Sorry for any inconvenience
Comment #5
mlncn commentedComment #6
pete-drupal commented(Not sure where this comment belongs. It proposes a patch to token.module, but as a direct consequence of the patch actions_token.patch described in this post)
I use Drupal 5.7, workflow 5.x-1.2, actions 5.x-1.0 and token 5.x-1.11 in order to send emails on certain workflow transitions. The mail should contain the name of the new state (i.e. after transition).
The actions_token.patch described in #195773: Patch to allow tokens in emails and messages (depends on the token module). is working fine, except that on a state transition, the token [workflow-current-state-name] shows the old state instead of the new state.
The cause seems to be that the token values are determined and cached before the state transition occurs. After the transition, the token value is retrieved from the cache instead of re-determined.
A workaround consists in replacing (in token.module)
with
(
token_get_values($type, $object, FALSE, $options);is changed to
token_get_values($type, $object, TRUE, $options);to disable token caching altogether - which makes it probably a less than ideal solution)Comment #7
socialnicheguru commentedsubscribing
Comment #8
guillaumeduveauSub, still active
Comment #9
pomliane commentedThis version of Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.