function theme_uc_file_downloads_token in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_file/uc_file.tokens.inc \theme_uc_file_downloads_token()
- 5 uc_file/uc_file.module \theme_uc_file_downloads_token()
- 7.3 uc_file/uc_file.tokens.inc \theme_uc_file_downloads_token()
Themes file download links token.
1 theme call to theme_uc_file_downloads_token()
- uc_file_token_values in uc_file/
uc_file.module - Implements hook_token_values().
File
- uc_file/
uc_file.module, line 675
Code
function theme_uc_file_downloads_token($user_files) {
$output = '';
foreach ($user_files as $user_file) {
// Let's only notify of them of the files, not the directories.
if (is_dir($user_file->filename)) {
continue;
}
$output .= l($user_file->filename, 'download/' . $user_file->fid . '/' . $user_file->file_key, array(
'absolute' => TRUE,
)) . "\n";
}
return $output;
}