You are here

function mediafront_field_formatter_settings_summary in MediaFront 7.2

Implements hook_field_formatter_settings_summary

File

includes/mediafront.field.inc, line 58

Code

function mediafront_field_formatter_settings_summary($field, $instance, $view_mode, $type = 'mediafront_player') {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if ($display['type'] == $type) {
    $header = array(
      'Setting',
      'Value',
    );
    $items = array();
    foreach ($settings as $name => $value) {
      $items[] = $name . ': ' . $value;
    }
    $summary = theme('item_list', array(
      'title' => t('Player Settings'),
      'items' => $items,
    ));
  }
  return $summary;
}