'audio', 'title' => t('XSPF Web Music Player - Extended'), 'description' => t('Extended version 0.2.3'), 'url' => t('http://musicplayer.sourceforge.net/'), 'preview' => 'players/xspf_extended.png', 'formats' => array('wav', 'mp3'), 'theme_node' => 'audio_xspf_extended_node_player', 'theme_xspf' => 'audio_xspf_extended_xspf_player', ); return $items; } function theme_audio_xspf_extended_node_player($node, $options = array()) { // make sure it's compatible with the flash player if (!audio_is_flash_playable($node)) { return NULL; } $options['song_url'] = check_url($node->url_play); $options['song_title'] = check_plain($node->audio_tags['title']); return audio_xspf_extended_player($options); } function theme_audio_xspf_extended_xspf_player($path, $options = array()) { $options['playlist_url'] = check_url($path); return audio_xspf_extended_player($options); } function audio_xspf_extended_player($options) { $url = base_path() . drupal_get_path('module', 'audio') .'/players/xspf_extended.swf'; $flashvars = audio_query_string_encode($options); $output = << EOT; return $output; }