You are here

function audiofield_field_formatter_info in AudioField 7

Implements hook_field_formatter_info().

File

./audio.field.inc, line 184
Implement an audio field, based on the file module's file field.

Code

function audiofield_field_formatter_info() {
  $formatters = array(
    'audiofield_player' => array(
      'label' => t('AudioField player'),
      'field types' => array(
        'file',
      ),
      'description' => t('Displays an Audiofield player.'),
      'settings' => array(
        'audiofield_audioplayer_mp3' => 'html5',
        'audiofield_audioplayer_ogg' => 'html5',
        'audiofield_audioplayer_wav' => 'html5',
        'audiofield_audioplayer_opus' => 'html5',
        'audiofield_audioplayer_webm' => 'html5',
        'audiofield_audioplayer_flac' => 'html5',
        'audiofield_audioplayer_mp4' => 'html5',
        'audiofield_audioplayer_oga' => 'html5',
        'download_link' => 0,
        'display_file_details' => 0,
        'audiofield_detail' => array(
          'filename' => 0,
          'filesize' => 0,
          'length' => 0,
          'codec' => 0,
          'channelmode' => 0,
          'samplerate' => 0,
          'bitrate' => 0,
          'tags_id3' => 0,
          'tags_id3_picture' => 0,
        ),
      ),
    ),
  );
  return $formatters;
}