function brightcove_field_field_formatter_info in Brightcove Video Connect 7.5
Same name and namespace in other branches
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_field_formatter_info()
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_field_formatter_info()
- 7.4 brightcove_field/brightcove_field.module \brightcove_field_field_formatter_info()
Implementation of hook_formatter_info().
File
- brightcove_field/
brightcove_field.module, line 487 - Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.
Code
function brightcove_field_field_formatter_info() {
$formatters = array();
$formatters['brightcove_default'] = array(
'label' => t('Standard video player'),
'field types' => array(
'brightcove_field',
),
'settings' => array(
'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
),
);
$formatters['brightcove_image'] = array(
'label' => t('Brightcove Image'),
'field types' => array(
'brightcove_field',
),
'settings' => array(
'brightcove_image_style' => '',
'brightcove_image_link' => '',
'brightcove_image_type' => '',
'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
),
);
$formatters['brightcove_metadata'] = array(
'label' => t('Brightcove Metadata'),
'field types' => array(
'brightcove_field',
),
'settings' => array(
'brightcove_metadata_type' => 'name',
),
);
return $formatters;
}