<?php
function theme_uc_file_downloads_token($file_downloads)
?>Description:
This theme function is responsible for creating the file download text for the [file-downloads] token that is used file download email notification. Developers who wish to override the default text (file download hyperlinks with the text being to the hyperlink URL), can do so by overriding the theme function.
Parameters:
- $file_downloads - an array of file download objects (rows in the uc_file_users table) associated with the order.
Return value:
The HTML that makes up the file download information.
Example:
<?php
$output = '';
foreach ($file_downloads as $file_download) {
$filename = basename(db_result(db_query("SELECT filename FROM {uc_files} WHERE `fid` = %d",$file_download->fid)));
$download_url = url('download/'.$file_download->fid.'/'.$file_download->key,NULL,NULL,TRUE);
$output .= '<a href="'.$download_url.'">'.$download_url.'</a>'."\n";
}
return $output;
?>
