Index: contributions/modules/views_slideshow/views_slideshow.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/Attic/views_slideshow.theme.inc,v retrieving revision 1.1.2.2 diff -u -p -r1.1.2.2 views_slideshow.theme.inc --- contributions/modules/views_slideshow/views_slideshow.theme.inc 21 Mar 2009 00:36:39 -0000 1.1.2.2 +++ contributions/modules/views_slideshow/views_slideshow.theme.inc 30 Aug 2009 14:42:24 -0000 @@ -8,7 +8,10 @@ function theme_views_slideshow_div_js($r $hover = 'hover'; if ($options['hover'] == 'hoverIntent') { if (module_exists('jq')) { - $hover = jq_add('hoverIntent') ? 'hoverIntent' : 'hover'; + if (in_array('hoverIntent', jq_plugins())) { + jq_add('hoverIntent'); + $hover = 'hoverIntent'; + } } else if (module_exists('hoverintent')) { $hover = hoverintent_add() ? 'hoverIntent' : 'hover'; @@ -65,7 +68,9 @@ function theme_views_slideshow_no_displa // If we have the jQ module installed, use that to add the Cycle plugin if possible. // That allows for version control. if (module_exists('jq')) { - $js = jq_add('cycle'); + if (in_array('cycle', jq_plugins())) { + $js = jq_add('cycle'); + } } // Otherwise, we'll add the version included with this module.