function theme_download_file_formatter_direct_download in DownloadFile 7.2
Same name and namespace in other branches
- 6 download_file.formatter.inc \theme_download_file_formatter_direct_download()
- 7.3 download_file.formatter.inc \theme_download_file_formatter_direct_download()
- 7 download_file.formatter.inc \theme_download_file_formatter_direct_download()
Theming function for displaying the link to direct download the file.
Parameters
$variables:
Return value
string A string containing the HTML ouput.
1 theme call to theme_download_file_formatter_direct_download()
- download_file_field_formatter_view in ./
download_file.module - Implementation of hook_field_formatter_view().
File
- ./
download_file.formatter.inc, line 9
Code
function theme_download_file_formatter_direct_download($variables) {
$output = '';
foreach ($variables['items'] as $delta => $item) {
if (!empty($item)) {
$output .= theme('download_file_direct_download_item', array(
'file' => (object) $item,
));
}
}
return $output;
}