You are here

function brightcove_field_field_formatter_info in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.2 brightcove_field/brightcove_field.module \brightcove_field_field_formatter_info()
  2. 7.4 brightcove_field/brightcove_field.module \brightcove_field_field_formatter_info()
  3. 7.5 brightcove_field/brightcove_field.module \brightcove_field_field_formatter_info()

Implementation of hook_formatter_info().

File

brightcove_field/brightcove_field.module, line 466
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['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;
}