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.
Unfortunately the documentation here is only for D5.x: http://drupal.org/node/34043
How must I modify this code to get it work with D7?
function phptemplate_audio_1pixelout_node_player($node, $options = array()) {
$options = array_merge(array(
'leftbg' => '0xFF0000',
'rightbg' => '0x000000',
'lefticon' => '0xFFFFFF',
'righticon' => '0xFFFFFF',
));
return theme_audio_1pixelout_node_player($node, $options);
}
Or where can I change the Button-Colors?
Comments
Comment #1
drupal a11y CreditAttribution: drupal a11y commentedGuess I found it in the .module in line 286:
function audiofield_wpaudioplayer($player_path, $audio_file) {
return '
';
}
But I would love to know what I had to do to change the colors in a "adaptivetheme_subtheme"?
What must I add and where?
There´s a "theme-settings.php" and a "template.php".
SORRY for this dull questions? I am not right into this stuff.
Comment #2
tepad.no CreditAttribution: tepad.no commentedThere is also a mistake in the audiofield.module file which causes the player to be opaque rather than transparent.
The line 292 is
and shoud be:
Good luck:).
Comment #3
Hari CreditAttribution: Hari commentedThis is for drupal 6 but my guess is that it is similar in D7 as well. There is a theme function called
theme_audiofield_players_wpaudioplayer
that can be copied to your template.php file.This is the override that I used to set the colors back to the default colors.
Replace THEMENAME with the name of your theme that you will be placing the override in.
P.S. Apologies for the ugly formatting, the function is copied directly out of the module.
Comment #4
tamerzg CreditAttribution: tamerzg commentedFixed in dev.
Comment #6
cooldeeponline CreditAttribution: cooldeeponline commentedyeah that works for me... thanks!!!