You are here

function theme_download_file_formatter_direct_download_icon in DownloadFile 7.3

Same name and namespace in other branches
  1. 6 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

$variables:

Return value

string 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 28

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;
}