Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: gokuast commentedfor some reason this still isn't working.
Comment #2
bas.hr CreditAttribution: bas.hr commentedFixed in dev