Closed (fixed)
Project:
Token
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2007 at 13:24 UTC
Updated:
26 Nov 2007 at 18:12 UTC
HI,
I want to know if it is possible to use the token module for revenue sharing between us and our node authors.
Is it possible to create a token that will replace the token by a custom profile value? I want to show our own profile field value 50% of the time, the profile field value of the node author 40% of the time and the profile field value of the author referrer 10% of the time.
Is it possible to do this with the token modules?
I'm sorry for my poor english.
Thank you.
Comments
Comment #1
gregglesThis is certainly possible, but would be up to your custom module to implement. Please see the API.txt file for details on how to implement hook_token_list and hook_token_values which provide tokens.
Comment #2
Christefano-oldaccount commentedThis sounds like something that the Rep[lacement]Tags module can do.
Comment #3
gregglesIt also sounds like something that token can do. I don't think we need to go following up in the other project's issue queue saying "me too" on every issue ;)
Comment #4
Christefano-oldaccount commentedSorry, just trying to be helpful.
Comment #5
gregglesThat's ok and I certainly appreciate the help. But you can imagine if we started the precedent of saying "could also be done with replacement module X".
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.