function mediaelement_field_formatter_settings_summary in MediaElement 7
Same name and namespace in other branches
- 7.2 mediaelement.module \mediaelement_field_formatter_settings_summary()
Implements hook_field_formatter_settings_summary().
File
- ./
mediaelement.field.inc, line 198 - Field integration for the MediaElement module.
Code
function mediaelement_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$autoplay = !empty($settings['autoplay']) ? t('Yes') : t('No');
$loop = !empty($settings['loop']) ? t('Yes') : t('No');
return t('Width: @width, Height: @height, Autoplay: @autoplay, Loop: @loop', array(
'@width' => $settings['width'],
'@height' => $settings['height'],
'@autoplay' => $autoplay,
'@loop' => $loop,
));
}