<font face="verdana,sans-serif">You aren't just asking how to display a token in a node body, are you? Because if that's all you want, you can just use <a href="http://drupal.org/project/token_filter">Token Filter</a> module.<br>
<br></font><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 10:31 AM, Bhavin Joshi <span dir="ltr"><<a href="mailto:bhavinjosi@joshics.in">bhavinjosi@joshics.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You can create your own token but you have to write a function or few<br>
lines of code to replace them with the original values.<br>
Like, you have to replace the values using t(<string>, array(tokens));<br>
I use the same technique in some of my contributed modules.<br>
<br>
Regards.<br>
<br>
2010/6/17 sidharth relhan <<a href="mailto:sidhartharelhan@gmail.com">sidhartharelhan@gmail.com</a>><br>
<div><div></div><div class="h5">><br>
> Hello!!<br>
> I stuck with a problem in creating and using token.<br>
> I think that it is create using function hook_token_value()<br>
> and using token_replace() function it replace variable but how to use token in the body<br>
> Example of creating token<br>
><br>
> As in view they are called like [user].<br>
> How to call them in the normal body if they are defined global.<br>
</div></div>> _______________________________________________<br>
> consulting mailing list<br>
> <a href="mailto:consulting@drupal.org">consulting@drupal.org</a><br>
> <a href="http://lists.drupal.org/mailman/listinfo/consulting" target="_blank">http://lists.drupal.org/mailman/listinfo/consulting</a><br>
><br>
<br>
<br>
<br>
--<br>
Bhavin H. Joshi<br>
Mobile: +91 999 886 0979<br>
Skype: bhavinjoshi19<br>
google: <a href="mailto:bhavinjosi@joshics.in">bhavinjosi@joshics.in</a><br>
Web: <a href="http://joshics.in" target="_blank">http://joshics.in</a><br>
Get your tiny URL: <a href="http://ly2.in" target="_blank">http://ly2.in</a><br>
Portfolio: <a href="http://sites.google.com/site/bhavinhjoshi/portfolio" target="_blank">http://sites.google.com/site/bhavinhjoshi/portfolio</a><br>
_______________________________________________<br>
consulting mailing list<br>
<a href="mailto:consulting@drupal.org">consulting@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/consulting" target="_blank">http://lists.drupal.org/mailman/listinfo/consulting</a><br>
</blockquote></div><br>