function audiofield_xspf_button in AudioField 7
Callback function for AudioField XSPF Button player.
1 string reference to 'audiofield_xspf_button'
- audiofield_players in ./
audiofield.players.inc - Implements hook_audiofield_players().
File
- ./
audiofield.players.inc, line 278 - Declares the available audio players for the Audio Field module.
Code
function audiofield_xspf_button($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_button', array(
'player_path' => $player_path,
'audio_file' => file_create_url($audio_file),
'audio_title' => urlencode($audio_title),
));
}