You are here

function jplayer_field_formatter_info in jPlayer 6

Same name and namespace in other branches
  1. 7.2 jplayer.module \jplayer_field_formatter_info()

Implementation of CCK's hook_field_formatter_info().

File

./jplayer.module, line 73
Provides an HTML5-compatible with Flash-fallback audio player.

Code

function jplayer_field_formatter_info() {
  return array(
    'single' => array(
      'label' => t('jPlayer player'),
      'field types' => array(
        'filefield',
        'audiofield',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'description' => t('Display an audio file as an HTML5-compatible with Flash-fallback audio player.'),
    ),
    'playlist' => array(
      'label' => t('jPlayer multifile playlist'),
      'field types' => array(
        'filefield',
        'audiofield',
      ),
      'multiple values' => CONTENT_HANDLE_MULTIPLE,
      'description' => t('Display multi-value fields as an HTML5-compatible with Flash-fallback audio player.'),
    ),
  );
}