function jw_player_field_formatter_info in JW Player 7.2
Same name and namespace in other branches
- 7 jw_player.module \jw_player_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./
jw_player.module, line 68 - Adds a theme function which allows theme developers to use the JW Player.
Code
function jw_player_field_formatter_info() {
$formatters = array(
'jw_player' => array(
'label' => t('JW player'),
'field types' => array(
'file',
'video',
),
'settings' => array(
'jwplayer_preset' => '',
'check_support' => FALSE,
'preview_image_field' => NULL,
'preview_image_style' => NULL,
),
),
'jw_player_playlist' => array(
'label' => t('JW player playlist'),
'field types' => array(
'file',
'video',
),
'settings' => array(
'jwplayer_preset' => '',
'check_support' => FALSE,
'playlist_size' => JW_PLAYER_DEFAULT_PLAYLIST_SIZE,
'playlist_position' => JW_PLAYER_DEFAULT_PLAYLIST_POSITION,
),
),
'jw_player_sources' => array(
'label' => t('JW player sources'),
'field types' => array(
'file',
'video',
),
'settings' => array(
'jwplayer_preset' => '',
'check_support' => FALSE,
),
),
);
return $formatters;
}