You are here

function video_embed_field_field_formatter_info in Video Embed Field 7.2

Same name and namespace in other branches
  1. 7 video_embed_field.module \video_embed_field_field_formatter_info()

Implements hook_field_formatter_info().

File

./video_embed_field.field.inc, line 282
Implement a video field.

Code

function video_embed_field_field_formatter_info() {
  $info = array(
    'video_embed_field' => array(
      'label' => t('Video Player'),
      'field types' => array(
        'video_embed_field',
      ),
      'settings' => array(
        'video_style' => 'normal',
        'description' => 1,
        'description_position' => 'bottom',
      ),
    ),
    'video_embed_field_url' => array(
      'label' => t('URL to Video'),
      'field types' => array(
        'video_embed_field',
      ),
      'settings' => array(),
    ),
    'video_embed_field_thumbnail' => array(
      'label' => t('Thumbnail Preview'),
      'field types' => array(
        'video_embed_field',
      ),
      'settings' => array(
        'image_style' => '',
        'description' => 1,
        'description_position' => 'bottom',
        'image_link' => 'none',
      ),
    ),
  );
  if (module_exists('colorbox')) {
    $info['video_embed_field_thumbnail_colorbox'] = array(
      'label' => t('Thumbnail Preview w/Colorbox'),
      'field types' => array(
        'video_embed_field',
      ),
      'settings' => array(
        'video_style' => 'normal',
        'image_style' => '',
        'description' => 1,
        'description_position' => 'bottom',
      ),
    );
    $info['video_embed_field_url_colorbox'] = array(
      'label' => t('URL to Video w/Colorbox'),
      'field types' => array(
        'video_embed_field',
      ),
      'settings' => array(
        'video_style' => 'normal',
      ),
    );
  }
  return $info;
}