function theme_download_file_formatter_direct_download in DownloadFile 6
Same name and namespace in other branches
- 7.3 download_file.formatter.inc \theme_download_file_formatter_direct_download()
- 7 download_file.formatter.inc \theme_download_file_formatter_direct_download()
- 7.2 download_file.formatter.inc \theme_download_file_formatter_direct_download()
Theming function for displaying the link to direct download the file.
Parameters
$element: Element(s) to format.
Return value
A string containing the HTML ouput.
File
- ./
download_file.formatter.inc, line 16 - Download file formatter hooks and callbacks.
Code
function theme_download_file_formatter_direct_download($element) {
$output = '';
foreach (element_children($element) as $i) {
$file = $element[$i]['#item'];
if (!empty($file)) {
$output .= theme('download_file_direct_download_item', $file);
}
}
return $output;
}