You are here

function theme_download_file_formatter_imagecache_imagelink_direct_download in DownloadFile 6

Theming function for displaying the link with a thumbnail ImageCache to direct download the image.

Parameters

$element: Element(s) to format.

Return value

A string containing the HTML ouput.

1 string reference to 'theme_download_file_formatter_imagecache_imagelink_direct_download'
download_file_theme in ./download_file.module
Implementation of hook_theme().

File

./download_file.formatter.inc, line 108
Download file formatter hooks and callbacks.

Code

function theme_download_file_formatter_imagecache_imagelink_direct_download($element) {
  $output = '';
  $formatter = $element['#formatter'];
  foreach (element_children($element) as $i) {
    $file = $element[$i]['#item'];
    if (!empty($file)) {
      $output .= theme('download_file_imagecache_imagelink_direct_download', $file, $formatter);
    }
  }
  return $output ? '<ul class="download-file">' . $output . '</ul>' : $output;
}