function mediaelement_field_formatter_info in MediaElement 7.2
Same name and namespace in other branches
- 7 mediaelement.field.inc \mediaelement_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./
mediaelement.module, line 91 - Provides HTML5 video and audio elements using Mediaelement.js for HTML4 browsers.
Code
function mediaelement_field_formatter_info() {
$formatters = array();
$formatters['mediaelement_video'] = array(
'label' => t('MediaElement Video'),
'field types' => array(
'file',
'link_field',
),
'settings' => array(
'controls' => variable_get('mediaelement_video_default_controls', TRUE),
'width' => variable_get('mediaelement_video_default_width', '640'),
'height' => variable_get('mediaelement_video_default_height', '385'),
'download_link' => variable_get('mediaelement_video_default_download_link', FALSE),
'download_text' => variable_get('mediaelement_video_default_download_text', t('Download')),
),
);
$formatters['mediaelement_audio'] = array(
'label' => t('MediaElement Audio'),
'field types' => array(
'file',
'link_field',
),
'settings' => array(
'controls' => variable_get('mediaelement_audio_default_controls', TRUE),
'width' => variable_get('mediaelement_audio_default_width', '300'),
'height' => variable_get('mediaelement_audio_default_height', '30'),
'download_link' => variable_get('mediaelement_audio_default_download_link', FALSE),
'download_text' => variable_get('mediaelement_audio_default_download_text', t('Download')),
),
);
return $formatters;
}