function video_cck_field_formatter_info in Embedded Media Field 5
Implementation of hook_field_formatter_info *
File
- contrib/
video_cck/ video_cck.module, line 102
Code
function video_cck_field_formatter_info() {
$types = array(
'video_cck',
);
$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' => array(
'label' => t('Image Thumbnail'),
'field types' => $types,
),
'video_embed' => array(
'label' => t('Embed Code'),
'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,
);
}
return $formats;
}