function theme_viewscarousel_view in Views carousel 6.2
Themes the Views Carousel View.
File
- ./
viewscarousel.module, line 17 - Provides a Views style plugin for jQuery jcarousel.
Code
function theme_viewscarousel_view($view, $options = array(), $rows = array()) {
// Remove the skin and skin path from the options.
$skin = $options['skin'];
$path = $skin == 'custom' ? $options['skin_path'] : NULL;
unset($options['skin'], $options['skin_path']);
// Remove any empty options and convert any numbers to float values.
foreach ($options as $key => $value) {
if (is_numeric($value)) {
$options[$key] = (double) $value;
}
if (empty($value)) {
unset($options[$key]);
}
}
// Use jCarousel to create the carousel.
return theme('jcarousel', $rows, $options, $skin, $path, 'viewscarousel-' . $view->name . '-' . $view->current_display);
}