function media_field_formatter_info in D7 Media 7
Same name and namespace in other branches
- 7.4 includes/media.fields.inc \media_field_formatter_info()
- 7.2 includes/media.fields.inc \media_field_formatter_info()
- 7.3 includes/media.fields.inc \media_field_formatter_info()
Implements hook_field_formatter_info().
File
- includes/
media.fields.inc, line 81 - : Provides a "Multimedia asset" field to the fields API
Code
function media_field_formatter_info() {
$formatters = array(
'media_large_icon' => array(
'label' => t('Large filetype icon'),
'field types' => array(
'file',
),
),
// This was originally used when media entities contained file fields. The
// current file entity architecture no longer needs this, but people may
// have used this formatter for other file fields on their website.
// @todo Some day, remove this.
'media' => array(
'label' => t('Media'),
'field types' => array(
'media',
),
'settings' => array(
'file_view_mode' => 'default',
),
),
);
return $formatters;
}