You are here

function video_field_formatter_info in Video 7.2

Same name and namespace in other branches
  1. 6.5 video.module \video_field_formatter_info()
  2. 6.4 video.module \video_field_formatter_info()
  3. 7 video.field.inc \video_field_formatter_info()

Implements hook_field_formatter_info().

File

./video.field.inc, line 992
Implement a video field, based on the file module's file field.

Code

function video_field_formatter_info() {
  return array(
    'video_formatter_player' => array(
      'label' => t('Video player'),
      'field types' => array(
        'video',
      ),
      'settings' => array(
        'widthxheight' => '640x360',
        'poster_image_style' => '',
      ),
    ),
    'video_formatter_thumbnail' => array(
      'label' => t('Video thumbnail'),
      'field types' => array(
        'video',
      ),
      'settings' => array(
        'image_style' => '',
        'image_link' => '',
        'widthxheight' => '640x360',
      ),
    ),
    'video_formatter_url' => array(
      'label' => t('Video url'),
      'field types' => array(
        'video',
      ),
      'settings' => array(
        'video_extension' => '',
        'link_title' => '',
      ),
    ),
  );
}