Closed (fixed)
Project:
AudioField
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2011 at 04:22 UTC
Updated:
7 Sep 2012 at 09:41 UTC
The problem is that the audiofield module has one ID for every flowplayer it renders. This is the offending code:
function audiofield_flowplayer($player_path, $audio_file) {
return theme('flowplayer', array('config' => $audio_file, 'id' => 'audiofield-'.$player_enum, 'attributes' => array('class' => 'audiofield', 'style' => 'height: 24px')));
}
Change it to
function audiofield_flowplayer($player_path, $audio_file) {
static $player_enum = 1;
$output = theme('flowplayer', array('config' => $audio_file, 'id' => 'audiofield-'.$player_enum, 'attributes' => array('class' => 'audiofield', 'style' => 'height: 24px')));
$player_enum++;
return $output;
}
Don't want to bother creating a patch, and not sure this is the way to handle this problem although it works.
Comments
Comment #1
gokuast commentedfor some reason this still isn't working.
Comment #2
bas.hr commentedFixed in dev