You are here

function template_preprocess_views_jqfx in Views jQFX 7

Views jQFX: preprocess function for the jqfx.

File

./views_jqfx.module, line 47
Provides jQFX style options for Views.

Code

function template_preprocess_views_jqfx(&$vars) {
  $options = $vars['options'];
  if (isset($options['jqfx_type'])) {
    if (in_array($options['jqfx_type'], array(
      'cloudcarousel',
      'cycle',
      'galleria',
      'imageflow',
      'nivoslider',
    ))) {
      $options['mode'] = 'views_jqfx_' . $options['jqfx_type'];
    }
  }
  else {
    $options['jqfx_type'] = NULL;
  }
  $vars['jqfx'] = theme($options['jqfx_type'], array(
    'view' => $vars['view'],
    'options' => $options,
    'rows' => $vars['rows'],
    'title' => $vars['title'],
  ));
}