You are here

function template_preprocess_views_view_fractionslider in Views FractionSlider 7

Same name and namespace in other branches
  1. 7.2 views/views_fractionslider.module \template_preprocess_views_view_fractionslider()

Implements hook_preprocess().

File

./views_fractionslider.module, line 20
Provide an fractionslider display style for Views.

Code

function template_preprocess_views_view_fractionslider(&$variables) {
  $view = $variables['view'];
  $options = $view->style_plugin->options;
  $variables['viewname'] = $view->name;
  $variables['class'] = $options['class'];
  $variables['dataspeed'] = $options['dataspeed'];
  $variables['datadelay'] = $options['datadelay'];
  $variables['space'] = $options['space'];
  $variables['pager'] = $options['pager'];
  $variables['controls'] = $options['controls'];

  //$path = drupal_get_path('module', 'views_fractionslider');

  //drupal_add_js($path . '/fractionslider/js/fractionslider.js');
}