function webform_protected_downloads_token_info in Webform Protected Downloads 7
Same name and namespace in other branches
- 8 webform_protected_downloads.module \webform_protected_downloads_token_info()
Implements hook_token_info() on behalf of text.module.
File
- ./
webform_protected_downloads.module, line 1111 - This file contains hook declarations and functions for the Webform Protected Downloads module.
Code
function webform_protected_downloads_token_info() {
// Text module provides three different text field types.
$info['types']['protected-downloads'] = array(
'name' => t('Protected Downloads'),
'description' => t('Tokens related to Protected Downloads.'),
);
$info['tokens']['protected-downloads']['download-url'] = array(
'name' => t('Download Url'),
'description' => t("A url to access the protected downloads."),
);
$info['tokens']['protected-downloads']['download-expires'] = array(
'name' => t('Download expiration date'),
'description' => t("The date when the download url expires or 'never'."),
);
$info['tokens']['protected-downloads']['file-list'] = array(
'name' => t('File list'),
'description' => t("A list of the files attached to this node (not linked)."),
);
$info['tokens']['protected-downloads']['file-list-checksum'] = array(
'name' => t('File list with ckecksum'),
'description' => t("A list of the files attached to this node including checksum (not linked)."),
);
return $info;
}