function quotes_token_list in Quotes 7
Same name and namespace in other branches
- 5 quotes.module \quotes_token_list()
- 6 quotes.module \quotes_token_list()
Implements hook_token_list().
File
- ./
quotes.module, line 2453 - The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.
Code
function quotes_token_list($type = 'all') {
$tokens = array();
switch ($type) {
case 'all':
case 'node':
$tokens['node']['quotes-author'] = t('The author of this quote.');
$tokens['node']['quotes-author-raw'] = t('The author of this quote. WARNING - raw user input.)');
$tokens['node']['quotes-author-id'] = t('The author id of this quote.)');
break;
}
return $tokens;
}