You are here

function audiofield_xspf_slim in AudioField 7

Callback function for AudioField XSPF Slim player.

1 string reference to 'audiofield_xspf_slim'
audiofield_players in ./audiofield.players.inc
Implements hook_audiofield_players().

File

./audiofield.players.inc, line 258
Declares the available audio players for the Audio Field module.

Code

function audiofield_xspf_slim($player_path, $audio_file, $options) {
  $audio_title = t('XSPF Slim Music Player');
  if (!empty($options)) {
    if (!empty($options['item']['description'])) {
      $audio_title = $options['item']['description'];
    }
    elseif (!empty($options['item']['filename'])) {
      $audio_title = $options['item']['filename'];
    }
  }
  return theme('audiofield_players_xspf_slim', array(
    'player_path' => $player_path,
    'audio_file' => file_create_url($audio_file),
    'audio_title' => urlencode($audio_title),
  ));
}