You are here

function soundcloudfield_field_formatter_settings_summary in SoundCloud field 7

Implements hook_field_formatter_settings_summary().

File

./soundcloudfield.module, line 282
@author Attila Fekete - http://drupal.org/user/762986

Code

function soundcloudfield_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if (strpos($display['type'], '_html5') !== FALSE) {
    $summary = t('Use the ') . $settings['player_type'] . t(' HTML5 player.');
  }
  return $summary;
}