function emvideo_field_formatter_info in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/emvideo.module \emvideo_field_formatter_info()
- 6.2 contrib/emvideo/emvideo.module \emvideo_field_formatter_info()
Implementation of hook_field_formatter_info()
File
- contrib/
emvideo/ emvideo.module, line 287 - Embedded Video module is a handler for 3rd party video files.
Code
function emvideo_field_formatter_info() {
$types = array(
'emvideo',
);
$formats = array(
'default' => array(
'label' => t('Default'),
'field types' => $types,
),
'video_video' => array(
'label' => t('Full Size Video'),
'field types' => $types,
),
'video_preview' => array(
'label' => t('Preview Video'),
'field types' => $types,
),
'video_thumbnail_no_link' => array(
'label' => t('Image Thumbnail'),
'field types' => $types,
),
'video_thumbnail' => array(
'label' => t('Image Thumbnail (linked to node)'),
'field types' => $types,
),
'video_thumbnail_provider_link' => array(
'label' => t('Image Thumbnail (linked to original video)'),
'field types' => $types,
),
'video_link' => array(
'label' => t('Link to original video'),
'field types' => $types,
),
'video_url' => array(
'label' => t('URL to original video'),
'field types' => $types,
),
'video_duration' => array(
'label' => t('Video duration'),
'field types' => $types,
),
'video_embed' => array(
'label' => t('Embed Code'),
'field types' => $types,
),
'video_replace' => array(
'label' => t('Thumbnail -> Full Size Video inline replacement'),
'field types' => $types,
),
'video_replace_preview' => array(
'label' => t('Thumbnail -> Preview Size Video inline replacement'),
'field types' => $types,
),
);
// Add thickbox formatter if thickbox module exists.
if (module_exists('thickbox')) {
$formats['thickbox'] = array(
'label' => t('Thickbox: Image Thumbnail -> Full Size Video'),
'field types' => $types,
);
}
if (module_exists('lightbox2')) {
$formats['lightbox2'] = array(
'label' => t('Lightbox2: Image Thumbnail -> Full Size Video'),
'field types' => $types,
);
}
if (module_exists('shadowbox')) {
$formats['shadowbox'] = array(
'label' => t('Shadowbox: Image Thumbnail -> Full Size Video'),
'field types' => $types,
);
}
return $formats;
}