function template_preprocess_views_slideshow_xtra_text in Views Slideshow Xtra 7
Same name and namespace in other branches
- 6.3 views_slideshow_xtra.module \template_preprocess_views_slideshow_xtra_text()
- 7.3 theme/views_slideshow_xtra.theme.inc \template_preprocess_views_slideshow_xtra_text()
- 7.2 theme/views_slideshow_xtra.theme.inc \template_preprocess_views_slideshow_xtra_text()
Text element template_preprocess.
File
- theme/
views_slideshow_xtra.theme.inc, line 83 - Views Slideshow Xtra theming functions.
Code
function template_preprocess_views_slideshow_xtra_text(&$vars) {
$js_vars = array(
'viewsSlideshowXtra' => array(
$vars['vss_id'] => array(
'slideInfo' => array(
'text' => array(
'slide-' . $vars['slide_count'] => array(
'item-' . $vars['field_item_count'] => array(
'left' => $vars['field']['left'],
'top' => $vars['field']['top'],
),
),
),
),
),
),
);
drupal_add_js($js_vars, 'setting');
}