You are here

function oembed_file_formatter_info in oEmbed 7.0

Same name and namespace in other branches
  1. 8 oembed.file.inc \oembed_file_formatter_info()
  2. 7 oembed.file.inc \oembed_file_formatter_info()

Implements hook_file_formatter_info().

File

./oembed.file.inc, line 6

Code

function oembed_file_formatter_info() {
  $formatters['oembed'] = array(
    'label' => t('oEmbed'),
    'default settings' => array(
      'width' => '560',
      'height' => '340',
      'wmode' => '',
    ),
    'view callback' => 'oembed_file_formatter_view',
    'settings callback' => 'oembed_file_formatter_oembed_settings',
    'description' => t('All-purpose oEmbed formatter.'),
  );
  $formatters['oembed_thumbnail'] = array(
    'label' => t('oEmbed thumbnail'),
    'default settings' => array(
      'width' => '180',
      'height' => '',
    ),
    'view callback' => 'oembed_file_formatter_view',
    'settings callback' => 'oembed_file_formatter_oembed_thumbnail_settings',
    'description' => t('oEmbed thumbnail media.'),
  );
  return $formatters;
}