function template_preprocess_vscc_controls in Views Slideshow Configurable Controls 7
@TODO Use #attached and render array instead of drupal_add_*.
File
- ./
vscc.module, line 44 - Views Slideshow Configurable Controls hook implementations.
Code
function template_preprocess_vscc_controls(&$vars) {
$vars['classes_array'][] = 'vscc_controls';
drupal_add_js(drupal_get_path('module', 'vscc') . '/js/vscc.js');
drupal_add_css(drupal_get_path('module', 'vscc') . '/vscc.css');
$theme_vars = array_merge($vars, array(
'skin' => $vars['settings']['vscc_controls_skin'],
));
$vars['rendered_control_previous'] = theme('vscc_control', array_merge($theme_vars, array(
'element' => 'previous',
)));
if ($vars['settings']['vscc_controls_pause']) {
$vars['rendered_control_pause'] = theme('vscc_control', array_merge($theme_vars, array(
'element' => 'pause',
)));
}
$vars['rendered_control_next'] = theme('vscc_control', array_merge($theme_vars, array(
'element' => 'next',
)));
}