You are here

function theme_download_file_formatter_direct_download_icon in DownloadFile 6

Same name and namespace in other branches
  1. 7.3 download_file.formatter.inc \theme_download_file_formatter_direct_download_icon()
  2. 7 download_file.formatter.inc \theme_download_file_formatter_direct_download_icon()
  3. 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.

File

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

Code

function theme_download_file_formatter_direct_download_icon($element) {
  $output = '';
  foreach (element_children($element) as $i) {
    $file = $element[$i]['#item'];
    if (!empty($file)) {
      $output .= theme('download_file_direct_download_icon_item', $file);
    }
  }
  return $output;
}