function uc_file_token_info in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_file/uc_file.tokens.inc \uc_file_token_info()
Implements hook_token_info().
File
- uc_file/
uc_file.tokens.inc, line 14 - Token hooks for the uc_file module.
Code
function uc_file_token_info() {
$type = [
'name' => t('File downloads'),
'description' => t('Tokens for purchased file downloads.'),
'needs-data' => 'uc_file',
];
$tokens['downloads'] = [
'name' => t('Downloads'),
'description' => t('The list of file download links (if any) associated with an order'),
];
return [
'types' => [
'uc_file' => $type,
],
'tokens' => [
'uc_file' => $tokens,
],
];
}