You are here

function _slider_pro_build_option_set in Slider Pro 7

Builds compatible JS options set from views options form.

Parameters

type $options:

1 call to _slider_pro_build_option_set()
template_preprocess_slider_pro_view in ./slider_pro.module
Display a view as a Slider Pro style.

File

./slider_pro.module, line 217

Code

function _slider_pro_build_option_set($options) {
  return array(
    'width' => $options['width'],
    'height' => $options['height'],
    'orientation' => $options['orientation'],
    'buttons' => $options['buttons'] ? TRUE : FALSE,
    'fade' => $options['transition'] ? TRUE : FALSE,
    'arrows' => $options['arrows'] ? TRUE : FALSE,
    'thumbnailsPosition' => isset($options['thumbnails']['thumbnails_position']) ? $options['thumbnails']['thumbnails_position'] : '',
    'thumbnailWidth' => isset($options['thumbnails']['width']) ? $options['thumbnails']['width'] : '',
    'thumbnailHeight' => isset($options['thumbnails']['height']) ? $options['thumbnails']['height'] : '',
    'waitForLayers' => TRUE,
    'visibleSize' => $options['visible_size'],
    'forceSize' => $options['force_size'],
  );
}