You are here

function filefieldmp3player_field_formatter_settings_summary in MP3 Player 7.2

Implements hook_field_formatter_settings_summary().

File

filefieldmp3player/filefieldmp3player.module, line 52

Code

function filefieldmp3player_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = t('Select a player?');
  if (isset($settings['player_instance'])) {
    $player = mp3player_players($settings['player_instance']);
    $summary = 'MP3 Player: ' . l($player['name'] . ' configuration', 'admin/config/media/mp3player/' . $player['pid']);
  }
  return $summary;
}