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".

CommentFileSizeAuthor
#3 token_profile cleanup.diff2.08 KBdesignerbrent

Comments

masondib’s picture

+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.

designerbrent’s picture

Yup, this is really broken. Hope it can get fixed.

designerbrent’s picture

Status: Active » Needs review
StatusFileSize
new2.08 KB

Here 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.

zeezhao’s picture

@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.

fizk’s picture

Status: Needs review » Fixed

Thanks, #3 is fixed in CVS.

masondib’s picture

Thanks for the patch and commit. Just confirming that the latest release with designerbrent's patch works as expected for me.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.