function brightcove_media_file_formatter_info in Brightcove Video Connect 7.7
Same name and namespace in other branches
- 7.2 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_info()
- 7.3 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_info()
- 7.4 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_info()
- 7.6 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_info()
Implements hook_file_formatter_info().
File
- brightcove_media/
brightcove_media.module, line 86 - This module provide the hook implementations for the integration with Media module.
Code
function brightcove_media_file_formatter_info() {
$formatters = [];
$formatters['brightcove_media_video'] = [
'label' => t('Brightcove Video'),
'file types' => [
'video',
],
'default settings' => [],
'view callback' => 'brightcove_media_file_formatter_video_view',
'settings callback' => 'brightcove_media_file_formatter_video_settings',
'mime types' => [
'video/brightcove',
],
];
$formatters['brightcove_media_video_html_tag'] = [
'label' => t('Brightcove Video with Video HTML tag'),
'file types' => [
'video',
],
'default settings' => [],
'view callback' => 'brightcove_media_file_formatter_video_html_tag_view',
'settings callback' => 'brightcove_media_file_formatter_video_settings',
'mime types' => [
'video/brightcove',
],
];
$formatters['brightcove_media_playlist'] = [
'label' => t('Brightcove Playlist'),
'file types' => [
'video',
],
'default settings' => [],
'view callback' => 'brightcove_media_file_formatter_playlist_view',
'settings callback' => 'brightcove_media_file_formatter_video_settings',
'mime types' => [
'video/brightcove',
],
];
$formatters['brightcove_media_image'] = [
'label' => t('Brightcove Preview Image'),
'file types' => [
'video',
],
'default settings' => [
'image_style' => '',
],
'view callback' => 'brightcove_media_file_formatter_image_view',
'settings callback' => 'brightcove_media_file_formatter_image_settings',
'mime types' => [
'video/brightcove',
],
];
return $formatters;
}