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