Closed (won't fix)
Project:
Activity
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2010 at 10:58 UTC
Updated:
11 Sep 2010 at 23:05 UTC
Hi,
i want to implement messages like this "[author-name] has added [activity-node-link] to [ogname]"
the only token taht is not working is ogname, it would be even nicer if ogname would be a link to the group.
Can anyone point out how this would work?
Thanks
Comments
Comment #1
Scott Reynolds commentedyou will need to write hook_token_list() and hook_token_values().
Token module provides a tokenSTARTER.module as a great example on how to do this. In the hook_token_values(), you will use the l() function to create a link.
Comment #2
mdesmet commentedThanks, that will do it!
Just thought it would already be adressed in the current code.
I could submit the code when finished developing it (somewhere next week as I'm leaving for a small holiday) as I'm sure that there are more users wanting to do something like that. Just ping me if you are interested in getting this included in the module.
Comment #3
pribeh commentedBump. Thanks for taking a stab at this mdesmet. I'll share if I get to it first.
Comment #4
sirkitree commentedThis is not something that will be implemented within Activity itself, so marking as won't fix. But please feel free to move this to the OG queue if you post a patch. Then tag it as activity2-integration so we can review.