You are here

function template_process_bxslider_ths in BxSlider 7

BxSlider template preprocess handler.

File

./bxslider.module, line 1282
Fields integration with BxSlider.

Code

function template_process_bxslider_ths(&$vars) {
  $vars['slider_id'] = $vars['settings']['slider_id'];
  libraries_load('bxslider');

  // JavaScript settings.
  $js_settings = $vars['settings'];
  drupal_add_js(array(
    'bxslider_ths' => array(
      $vars['slider_id'] => $js_settings,
    ),
  ), 'setting');
  drupal_add_css(drupal_get_path('module', 'bxslider') . '/css/bxslider.css');
  drupal_add_js(drupal_get_path('module', 'bxslider') . '/js/bxslider_ths.js', array(
    'type' => 'file',
    'scope' => 'footer',
  ));
}