function _token_filter_filter_tips in Token Filter 7
Filter tip callback for the token input filter.
1 string reference to '_token_filter_filter_tips'
- token_filter_filter_info in ./
token_filter.module - Implements hook_filter_info().
File
- ./
token_filter.module, line 61 - Additional text filter for token input.
Code
function _token_filter_filter_tips($filter, $format, $long = FALSE) {
if ($long) {
$output = t('Global tokens will be replaced with their respective token values (e.g. [site:name] or [current-page:title]). The following is a list of the tokens that are available:');
$output .= theme('token_tree', array(
'click_insert' => FALSE,
));
return $output;
}
else {
return t('Global tokens will be replaced with their respective token values (e.g. [site:name] or [current-page:title]).');
}
}