function template_preprocess_jplayer_single in jPlayer 6
Preprocess function for jplayer.tpl.php when doing a single item.
File
- includes/
jplayer.theme.inc, line 21
Code
function template_preprocess_jplayer_single(&$vars) {
$vars['mode'] = 'single';
$vars['item'] = array(
'url' => file_create_url($vars['element']['#item']['filepath']),
'label' => !empty($vars['element']['#item']['data']['description']) ? $vars['element']['#item']['data']['description'] : $vars['element']['#item']['filename'],
);
$vars['player_id'] = _jplayer_check_id('jplayer-' . $vars['element']['#node']->nid . '-' . str_replace('_', '-', $vars['element']['#field_name']) . '-' . $vars['element']['#item']['#delta']);
}