This small module makes content profile fields available as user tokens. E.g.: you can use 'real name' or 'address' as tokens in other modules. (in my case activity module)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alippai’s picture

Status: Active » Needs review
FileSize
1.22 KB

Fixed the "namespace", added the dependencies and package to the .info file.

fago’s picture

Status: Needs review » Needs work

hm, for sure we can't ship with that in the base module, as it has a significant impact on performance, but it would make sense to add it as extension module. However for that it would need more polishing - as of now I think it would have problems with some cck fields like user references. Perhaps it could reuse the information about the available cck or node tokens somehow. Also it should do something about preventing token loops (user -> node -> user.. ?)

alippai’s picture

Status: Needs work » Needs review
FileSize
1.06 KB

So it has support for text and number, single value fields. Added support for flag friends module - content profile tokens for requested and requestee.

alippai’s picture

Assigned: Unassigned » alippai
fago’s picture

Status: Needs review » Needs work

What about my comments from #2?

fago’s picture

Status: Needs work » Needs review
FileSize
6.47 KB

Got your irc message, I see it'S restricted to numbers and textfields now. So it should be fine.

-> I added in to the module and mentioned it in the README. I fixed some coding style issues and also noted that it didn't use 'user' as typen when doing the replacements. I've no time to test this right now, so I'm attaching the proposed changes. -> Testers needed!

@alippai: I removed your @author comment as with the time also others contribute to the module, but I mentioned you in the README as original author. Is it ok that way?

fago’s picture

oh and I fixed the module to depend on 'content' too.

Arto’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #6 works fine, at least for our purposes: it is exactly what we needed to get Content Profile fields output as part of RSS feeds using the RDF module. Many thanks, Adam and Wolfgang.

fago’s picture

Status: Reviewed & tested by the community » Fixed

alippai told me on IRC that it's fine that way -> committed, thanks!

Status: Fixed » Closed (fixed)

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

Heihachi88’s picture

Status: Closed (fixed) » Needs review

Sorry for hijacking this thread again. But what to do if i want content profile title field as token?