You are here

function media_field_formatter_info in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 includes/media.fields.inc \media_field_formatter_info()
  2. 7 includes/media.fields.inc \media_field_formatter_info()
  3. 7.3 includes/media.fields.inc \media_field_formatter_info()

Implements hook_field_formatter_info().

Provides legacy support for the "Large filetype icon" file field formatter. 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.

File

includes/media.fields.inc, line 638
Provide media selector widget and media field formatters 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',
      ),
      'settings' => array(
        'image_style' => '',
      ),
    ),
  );
  return $formatters;
}