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