Hi, the module isn't working at all. Module name is "token_profile", but the hooks were named "profile_token". I changed this manually and it works fine now, but it would be nice if it would work "out of the box".
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | token_profile cleanup.diff | 2.08 KB | designerbrent |
Comments
Comment #1
masondib commented+1
Wasn't working at all, but changing the name of the module and info files to profile_token and re-enabling made it work as expected.
Comment #2
designerbrent commentedYup, this is really broken. Hope it can get fixed.
Comment #3
designerbrent commentedHere is a patch that fixes the profile_token / token_profile issue.
Additionally on lines 25-27 it changes from using the active user to using the node author which seemed to make more sense for this functionality.
Comment #4
zeezhao commented@designerbrent - Thanks for your patch. Your change to node author makes sense.
Before I open a new request:
I want to use it with http://drupal.org/project/casetracker
Casetracker can assign tasks to people. However the link to those tasks uses uid or username. But I want to get the links to show the real name of a person.
So I have created a profile field e.g. profile_fullname which stores the name. Your module then enables me to see the tokens in say notifications module templates as: [user:profile_fullname] or [node:profile_fullname].
Please how I use this module to do this? Do I need a hook or something? Thanks.
Comment #5
fizk commentedThanks, #3 is fixed in CVS.
Comment #6
masondib commentedThanks for the patch and commit. Just confirming that the latest release with designerbrent's patch works as expected for me.