You are here

function mediafront_field_formatter_info in MediaFront 7.2

Same name and namespace in other branches
  1. 6.2 mediafront_field.inc \mediafront_field_formatter_info()
  2. 6 mediafront_field.inc \mediafront_field_formatter_info()
  3. 7 includes/mediafront.field.inc \mediafront_field_formatter_info()

Implements hook_field_formatter_info().

File

includes/mediafront.field.inc, line 6

Code

function mediafront_field_formatter_info() {
  $field_types = array(
    'file',
    'text',
    'youtube',
  );
  drupal_alter('mediafront_field_types', $field_types);
  return array(
    'mediafront_player' => array(
      'label' => t('MediaFront Player'),
      'description' => t('Play this file using a MediaFront Preset.'),
      'field types' => $field_types,
      'settings' => array(
        'preset' => '',
      ),
    ),
  );
}