You are here

function brightcove_field_formatter_info in Brightcove Video Connect 7.6

Same name and namespace in other branches
  1. 7.7 brightcove.module \brightcove_field_formatter_info()

Implementation of hook_formatter_info().

File

./brightcove.module, line 490
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_field_formatter_info() {
  $formatters = [];
  $formatters['brightcove_default'] = [
    'label' => t('Standard video player'),
    'field types' => [
      'brightcove_field',
    ],
    'settings' => [
      'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
      'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
    ],
  ];
  $formatters['brightcove_iframe'] = [
    'label' => t('Iframe video player'),
    'field types' => [
      'brightcove_field',
    ],
  ];
  $formatters['brightcove_image'] = [
    'label' => t('Brightcove Image'),
    'field types' => [
      'brightcove_field',
    ],
    'settings' => [
      'brightcove_image_style' => '',
      'brightcove_image_link' => '',
      'brightcove_image_type' => '',
      'width' => BRIGHTCOVE_DEFAULT_VIDEO_WIDTH,
      'height' => BRIGHTCOVE_DEFAULT_VIDEO_HEIGHT,
    ],
  ];
  $formatters['brightcove_metadata'] = [
    'label' => t('Brightcove Metadata'),
    'field types' => [
      'brightcove_field',
    ],
    'settings' => [
      'brightcove_metadata_type' => 'name',
    ],
  ];
  return $formatters;
}