function _audiofield_theme in AudioField 7
Defining AudioField theme callbacks.
1 call to _audiofield_theme()
- audiofield_theme in ./
audiofield.module - Implements hook_theme().
File
- ./
audiofield.players.inc, line 126 - Declares the available audio players for the Audio Field module.
Code
function _audiofield_theme() {
return array(
// Themes for the players.
'audiofield_html5_audio' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--html5',
'variables' => array(
'audio_file' => NULL,
'download_access' => FALSE,
),
),
'audiofield_players_wpaudioplayer' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--wpaudio',
'variables' => array(
'id' => NULL,
'audio_file' => NULL,
),
),
'audiofield_players_xspf_slim' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--xspf-slim',
'variables' => array(
'player_path' => NULL,
'audio_file' => NULL,
'audio_title' => NULL,
),
),
'audiofield_players_xspf_button' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--xspf-button',
'variables' => array(
'player_path' => NULL,
'audio_file' => NULL,
'audio_title' => NULL,
),
),
'audiofield_players_premium_beat_single_track' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--premiumbeat-singletrack',
'variables' => array(
'player_path' => NULL,
'audio_file' => NULL,
),
),
'audiofield_players_premium_beat_thin' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--premiumbeat-thin',
'variables' => array(
'player_path' => NULL,
'audio_file' => NULL,
),
),
'audiofield_players_premium_beat_mini' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--premiumbeat-mini',
'variables' => array(
'player_path' => NULL,
'audio_file' => NULL,
),
),
'audiofield_players_soundmanager2_360player' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--soundmanager2-360player',
'variables' => array(
'id' => NULL,
'audio_file' => NULL,
),
),
'audiofield_players_soundmanager2_baruiplayer' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--soundmanager2-barui',
'variables' => array(
'audio_file' => NULL,
'audio_title' => NULL,
),
),
'audiofield_players_soundmanager2_buttonplayer' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--soundmanager2-button',
'variables' => array(
'audio_file' => NULL,
'audio_title' => NULL,
),
),
'audiofield_players_wavesurfer_player' => array(
'path' => drupal_get_path('module', 'audiofield') . '/templates',
'template' => 'audiofield--wavesurfer',
'variables' => array(
'container_id' => NULL,
'audio_title' => NULL,
),
),
);
}