function timeago_token_list in Timeago 6.2
Implementation of hook_token_list().
File
- ./
timeago.module, line 119 - Adds support for the Timeago jQuery library.
Code
function timeago_token_list($type = 'all') {
$tokens = array();
if ($type == 'node') {
$tokens['node']['timeago'] = t('The amount of time ago the node was created.') . ' ' . t('Uses the Timeago module to display the time dynamically with graceful degredation for non-JS users.');
}
elseif ($type == 'comment') {
$tokens['comment']['created-timeago'] = t('The amount of time ago the comment was changed.') . ' ' . t('Uses the Timeago module to display the time dynamically with graceful degredation for non-JS users.');
}
return $tokens;
}