function custom_formatters_token_list in Custom Formatters 6
Implements hook_token_list().
File
- includes/
token.inc, line 10 - Provides Custom Formatters integration with the Token module.
Code
function custom_formatters_token_list($type = 'all') {
$tokens['global']['path-to-theme'] = t('Path to current theme.');
$tokens['global']['path-to-theme-????'] = t('Path to defined theme; path-to-theme-garland, etc.');
$tokens['global']['path-to-module-????'] = t('Path to defined module; path-to-module-custom_formatters, etc.');
$tokens['global']['path-to-files'] = t('Path to files directory.');
if ($type == 'field' || $type == 'all') {
if (module_exists('filefield')) {
$tokens['file']['filefield-alt'] = t('File ALT text.');
$tokens['file']['filefield-title'] = t('File Title text.');
if (module_exists('imagecache')) {
$tokens['file']['filefield-imagecache-????'] = t('File path to defined ImageCache preset; filefield-imagecache-thumb, etc.');
}
}
}
return $tokens;
}