I use some tokens on my drupal site.
I have php code where I need to use a token.
print '[token]';
This works fine, but I need to use it in a function like
myfunctionname('[token]') { }
This does not work. How to use this token in php code without using the print function. I am trying to encode a string using a special function. Therefore, I have to use the value from this token as a parameter in the function.
source share