You are here

function template_preprocess_views_showcase_view in Views Showcase 6

Same name and namespace in other branches
  1. 6.2 views_showcase.module \template_preprocess_views_showcase_view()
  2. 7 views_showcase.module \template_preprocess_views_showcase_view()

Implementation of template preprocess for the view

File

./views_showcase.module, line 17
The implementation of Views Showcase module.

Code

function template_preprocess_views_showcase_view(&$vars) {
  $view = $vars['view'];
  $option = $view->style_plugin->options;
  $row = $view->row_plugin->options;
  $vars['skin'] = $option['skin'] . ".css";
  drupal_add_js(array(
    'views_showcase' => array(
      'easing' => $option['easing'],
      'cycle' => $option['cycle'],
      'sync' => $option['sync'],
      'timeout' => $option['timeout'],
      'listPause' => $option['listpause'],
      'pause' => $option['pause'],
    ),
  ), 'setting');
  $vars['views_showcase_id'] = 'views-showcase-' . $view->name . '-' . $view->current_display;
}