Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Lol, yeup. I actually have it written down here on a piece of paper next to me to implement some parameters for activity_token_help() so we can pass it module and ops.
Comments
Comment #1
sirkitree commentedI'm not really sure what you're talking about: from where are these tokens provided?
Comment #2
likewhoa commentedFrom setting up a 'node' activity action with Node reference tokens. The only tokens that are actually working are [nid], [title] & [title-raw].
Comment #3
sirkitree commentedWhere are these Node reference tokens defined?
Comment #4
likewhoa commentedin 'Node View' trigger.
Comment #5
sirkitree commentedI don't see these tokens at all in a clean install. can you give me the module that these tokens are defined within code?
Comment #6
likewhoa commentedI am using Token-6.x-1.x-dev (2009-Apr-20) the rest of modules are also -dev.
Comment #7
likewhoa commentedI don't know if this bug is related to #451298: hook_activity_info not providing an object with a uid. but that fixed didn't work as using 'user activity' type on 'login' trigger still gives me stuff like.
You have logged in
[name] has logged in
instead of
You have logged in
foobar has logged in
Comment #8
Scott Reynolds commenteduse token [user] instead of [name]
Comment #9
sirkitree commentedI just tried this out.
Record an activity message when: user login
Account message: You have logged in.
Public message: [user] has logged in.
And it successfully translated [user] into the user that logged in.
Are you really using a token called [name]? I don't have that listed in my list of user tokens.
Comment #10
Scott Reynolds commentedI look at the token mentioned in this issue title. They are very specific tokens expecting very specific objects in the token_multiple_replace.
These tokens will not be supported, as they do not apply across all node.
We do need to fix the token form and only show tokens that will work in all cases of that trigger/op combo
Comment #11
sirkitree commentedLol, yeup. I actually have it written down here on a piece of paper next to me to implement some parameters for activity_token_help() so we can pass it module and ops.
Comment #12
sirkitree commentedAnd here it is: http://drupal.org/cvs?commit=207402
Now you will onyl see the tokens that are available for translation (i.e. no 'node' token on a 'user' activity)
Comment #13
sirkitree commentedupdate to issue title to reflect the root of this problem.
Comment #14
likewhoa commentedsweet! thanks guys. I will continue testing and submitting new bugs. I love the approach this module has taken.