Contributions API

token.module

Version

1.7.4.5 (checked in on 2008/01/29 at 15:12:19 by eaton)

Functions

Namesort iconDescription
theme_token_helpFor a given context, builds a formatted list of tokens and descriptions of their replacement values.
token_get_listA helper function that retrieves all currently exposed tokens, and merges them recursively. This is only necessary when building the token listing -- during actual value replacement, only tokens in a particular domain are requested and a normal...
token_get_valuesReturn a list of valid substitution tokens and their values for the specified type.
token_includeGeneral function to include the files that token relies on for the real work.
token_prepare_tokensA helper function that transforms all the elements of an array. Used to change the delimiter style from brackets to percent symbols etc.
token_replaceReturn the value of $original, with all instances of placeholder tokens replaced by their proper values. To replace mutliple types at once see token_replace_multiple().
token_replace_multipleReturn the value of $original, with all instances of placeholder tokens replaced by their proper values. Contrary to token_replace(), this function supports replacing mutiple types.
token_theme
token_token_listSample implementation of hook_token_list(). Documents the individual tokens handled by your module.
token_token_valuesSample implementation of hook_token_values().
_token_get_id
_token_replace_tokens