You are here

function theme_download_file_formatter_direct_download_accessible in DownloadFile 7.3

Same name and namespace in other branches
  1. 6 download_file.formatter.inc \theme_download_file_formatter_direct_download_accessible()
  2. 7 download_file.formatter.inc \theme_download_file_formatter_direct_download_accessible()
  3. 7.2 download_file.formatter.inc \theme_download_file_formatter_direct_download_accessible()

Theming function for displaying the link accessible to direct download the file.

Parameters

$variables:

Return value

string A string containing the HTML ouput.

1 theme call to theme_download_file_formatter_direct_download_accessible()
download_file_field_formatter_view in ./download_file.module
Implementation of hook_field_formatter_view().

File

./download_file.formatter.inc, line 47

Code

function theme_download_file_formatter_direct_download_accessible($variables) {
  $output = '';
  foreach ($variables['items'] as $delta => $item) {
    if (!empty($item)) {
      $output .= theme('download_file_direct_download_item_accessible', array(
        'file' => (object) $item,
      ));
    }
  }
  return $output ? '<ul class="download-file">' . $output . '</ul>' : $output;
}