You are here

function text_token_list in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/text/text.token.inc \text_token_list()

Implementation of hook_token_list().

File

modules/text/text.token.inc, line 11
Provides tokens for text fields.

Code

function text_token_list($type = 'all') {
  if ($type == 'field' || $type == 'all') {
    $tokens = array();
    $tokens['text']['raw'] = t('Raw, unfiltered text');
    $tokens['text']['formatted'] = t('Formatted and filtered text');
    return $tokens;
  }
}