> **Possible Duplicate:**  
> [Programmatically create a token](http://drupal.stackexchange.com/questions/4930/programmatically-create-a-token)  

<!-- End of automatically inserted text -->

How do I create custom tokens?  Also, is it possible to attach a token to a callback function?  For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?