You are here

function mediafront_file_formatter_info in MediaFront 7.2

Implements hook_file_formatter_info().

File

includes/mediafront.field.inc, line 187

Code

function mediafront_file_formatter_info() {

  // Add the mediafront file player.
  $formatters['mediafront_file_player'] = array(
    'label' => t('MediaFront File Player'),
    'file types' => array(
      'video',
      'audio',
    ),
    'default settings' => array(
      'preset' => '',
    ),
    'view callback' => 'mediafront_file_formatter_view',
    'settings callback' => 'mediafront_file_formatter_settings',
  );
  return $formatters;
}