function filefieldmp3player_theme in MP3 Player 6
Same name and namespace in other branches
- 6.2 filefieldmp3player/filefieldmp3player.module \filefieldmp3player_theme()
Implementation of hook_theme().
File
- filefieldmp3player/
filefieldmp3player.module, line 23
Code
function filefieldmp3player_theme() {
$path = drupal_get_path('module', 'filefieldmp3player') . '/theme';
$theme = array();
$players = mp3player_players();
foreach ($players as $pid => $player) {
$theme['filefieldmp3player_formatter_mp3player_' . $player['name']] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_filefieldmp3player_formatter_mp3player',
);
}
$theme['filefieldmp3player_description'] = array(
'template' => 'description',
'arguments' => array(
'id3' => array(),
),
'path' => $path,
);
return $theme;
}