function oembed_file_formatter_info in oEmbed 7
Same name and namespace in other branches
- 8 oembed.file.inc \oembed_file_formatter_info()
- 7.0 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 = array();
$formatters['oembed'] = array(
'label' => t('oEmbed'),
'file types' => array(
'audio, document, image, video',
),
'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.'),
'mime types' => array(
'audio/oembed',
'image/oembed',
'text/oembed',
'video/oembed',
),
);
$formatters['oembed_thumbnail'] = array(
'label' => t('oEmbed thumbnail'),
'file types' => array(
'audio, document, image, video',
),
'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.'),
'mime types' => array(
'audio/oembed',
'image/oembed',
'text/oembed',
'video/oembed',
),
);
return $formatters;
}