You are here

function mediaelement_field_formatter_settings_summary in MediaElement 7.2

Same name and namespace in other branches
  1. 7 mediaelement.field.inc \mediaelement_field_formatter_settings_summary()

Implements hook_field_formatter_settings_summary().

File

./mediaelement.module, line 254
Provides HTML5 video and audio elements using Mediaelement.js for HTML4 browsers.

Code

function mediaelement_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  return t('Width: @width px, Height: @height px', array(
    '@width' => $settings['width'],
    '@height' => $settings['height'],
  ));
}