function webform_protected_downloads_token_list in Webform Protected Downloads 6
Implementation of hook_token_list().
Parameters
string $type :
Return value
array
File
- ./
webform_protected_downloads.module, line 977 - This file contains hook declarations and functions for the Webform Protected Downloads module.
Code
function webform_protected_downloads_token_list($type = 'all') {
if ($type == 'webform_protected_downloads' || $type == 'all') {
$tokens['Protected downloads']['download-url'] = t("A url to access the protected downloads");
$tokens['Protected downloads']['download-expires'] = t("The date when the download url expires or 'never'.");
$tokens['Protected downloads']['file-list'] = t("A list of the files attached to this node (not linked).");
$tokens['Protected downloads']['file-list-checksum'] = t("A list of the files attached to this node including checksum (not linked).");
return $tokens;
}
}