You are here

function download_file_field_formatter_info in DownloadFile 7

Same name and namespace in other branches
  1. 6 download_file.module \download_file_field_formatter_info()
  2. 7.3 download_file.module \download_file_field_formatter_info()
  3. 7.2 download_file.module \download_file_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./download_file.module, line 182
Module to direct download files or images.

Code

function download_file_field_formatter_info() {
  $formatters = array(
    'direct_download' => array(
      'label' => t('Direct download file'),
      'field types' => array(
        'file',
        'image',
      ),
      'description' => t('Displays a link to direct download the file.'),
    ),
    'direct_download_icon' => array(
      'label' => t('Direct download file with the type icon'),
      'field types' => array(
        'file',
        'image',
      ),
      'description' => t('Displays a link to direct download the file with the type icon.'),
    ),
    'direct_download_accessible' => array(
      'label' => t('Direct download file accessible'),
      'field types' => array(
        'file',
        'image',
      ),
      'description' => t('Displays a link accessible to direct download the file.'),
    ),
    'direct_download_accessible_icon' => array(
      'label' => t('Direct download file accessible with the type icon'),
      'field types' => array(
        'file',
        'image',
      ),
      'description' => t('Displays a link accessible to direct download the file with the type icon.'),
    ),
  );
  return $formatters;
}