function file_force_field_formatter_info in File Force Download 7
Same name and namespace in other branches
- 6.2 file_force.module \file_force_field_formatter_info()
- 6 file_force.module \file_force_field_formatter_info()
Implements hook_field_formatter_info().
Add file_force formatters to file/image fields.
File
- ./
file_force.module, line 120 - File Force Download module.
Code
function file_force_field_formatter_info() {
$formatters = array();
// Handle file field files.
$formatters['file_force_file_default'] = array(
'label' => t('File Force: Generic file'),
'field types' => array(
'file',
),
);
$formatters['file_force_file_table'] = array(
'label' => t('File Force: Table of files'),
'field types' => array(
'file',
),
);
$formatters['file_force_file_url_plain'] = array(
'label' => t('File Force: URL to file'),
'field types' => array(
'file',
),
);
// Handle image field files.
$formatters['file_force_image'] = array(
'label' => t('File Force: Image'),
'field types' => array(
'image',
),
'settings' => array(
'image_style' => '',
),
);
return $formatters;
}