You are here

function file_entity_field_formatter_info in D7 Media 7

Implements hook_field_formatter_info().

File

file_entity/file_entity.field.inc, line 11
Field API integration for the file_entity module.

Code

function file_entity_field_formatter_info() {
  $info['file_rendered'] = array(
    'label' => t('Rendered file'),
    'description' => t('Display the file in a specific view mode'),
    'field types' => array(
      'file',
      'image',
    ),
    'settings' => array(
      'file_view_mode' => 'default',
    ),
  );
  return $info;
}