These Drupal 6 token files are included here as part of our Drupal source code examples project. (Please see that project page, including our promise to donate back to the Drupal open source community.)
This content is from the Drupal 6 token project README file:
$Id: README.txt,v 184.108.40.206 2009/04/19 21:31:24 greggles Exp $ Description =========== Token module provides a centralized API for text substitution. Unless you're installing another Drupal module that requires it, this software is probably unnecessary. For more information on tokens see http://groups.drupal.org/tokens Benefits ======== If you're a Drupal developer, check out API.txt for detailed instructions on using the Token API. It allows every module to announce the placeholder tokens they can handle, uses simple caching to prevent duplicated work in a given page-view, and is pretty lightweight. It's nice. You'll like it. tokenSTARTER ============ Want to add your own custom tokens to a site? Not sure how to write a module? Worry no more, it's now quite easy. 1. Copy and rename the tokenSTARTER.info and tokenSTARTER.module replacing every instance of STARTER with a descriptive, appropriate word. 2. Edit the .module file and change hook_token_list and hook_token_values to provide whatever additional tokens or logic your site needs. 3. Enable the module and enjoy! You should also want to read the API.txt.
These are direct links to the Drupal 6 token project source code files included in this project: