? 817696-views_slideshow-d7.patch
? views_slideshow_817696.patch
Index: views_slideshow.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/views_slideshow.info,v
retrieving revision 1.2.4.1
diff -u -p -r1.2.4.1 views_slideshow.info
--- views_slideshow.info	23 Feb 2010 22:35:07 -0000	1.2.4.1
+++ views_slideshow.info	14 Dec 2010 14:03:01 -0000
@@ -3,4 +3,8 @@ name = Views Slideshow
 description = Provides a View style that displays rows as a jQuery slideshow.
 dependencies[] = views
 package = Views
-core = 6.x
+core = 7.x
+files[] = views_slideshow.module
+files[] = views_slideshow.theme.inc
+files[] = views_slideshow.views.inc
+files[] = views_slideshow_plugin_style_slideshow.inc
Index: views_slideshow.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/views_slideshow.module,v
retrieving revision 1.11.2.2.2.12.2.1
diff -u -p -r1.11.2.2.2.12.2.1 views_slideshow.module
--- views_slideshow.module	20 Apr 2010 22:04:17 -0000	1.11.2.2.2.12.2.1
+++ views_slideshow.module	14 Dec 2010 14:03:02 -0000
@@ -7,12 +7,12 @@
  */
 
 /**
- * Implement hook_theme().
+ * Implements hook_theme().
  */
 function views_slideshow_theme($existing, $type, $theme, $path) {
   return array(
     'views_slideshow_main_section' => array(
-      'arguments' => array('id' => NULL, 'hidden_elements' => NULL, 'plugin' => NULL),
+      'variables' => array('id' => NULL, 'hidden_elements' => NULL, 'plugin' => NULL),
       'file' => 'views_slideshow.theme.inc',
     ),
   );
@@ -51,5 +51,5 @@ function template_preprocess_views_slide
   if (in_array($options['mode'], array('singleframe', 'thumbnailhover', 'menu', 'ddblock', 'slider'))) {
     $options['mode'] = 'views_slideshow_' . $options['mode'];
   }
-  $vars['slideshow'] = theme($options['mode'], $vars['view'], $options, $vars['rows'], $vars['title']);
+  $vars['slideshow'] = theme($options['mode'], array('view' => $vars['view'], 'options' => $options, 'rows' => $vars['rows'], 'title' => $vars['title']));
 }
Index: 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.2.6.2.1
diff -u -p -r1.1.2.2.2.6.2.1 views_slideshow.theme.inc
--- views_slideshow.theme.inc	29 Sep 2010 03:07:49 -0000	1.1.2.2.2.6.2.1
+++ views_slideshow.theme.inc	14 Dec 2010 14:03:02 -0000
@@ -13,10 +13,10 @@
  *
  * @ingroup themeable
  */
-function theme_views_slideshow_main_section($id, $hidden_elements, $plugin) {
-  $attributes['id'] = "${plugin}_main_${id}";
-  $attributes['class'] = "${plugin}_main views_slideshow_main";
+function theme_views_slideshow_main_section($variables) {
+  $attributes['id'] = "{$variables['plugin']}_main_{$variables['id']}";
+  $attributes['class'] = array("{$variables['plugin']}_main views", "slideshow_main");
   $attributes = drupal_attributes($attributes);
 
-  return "<div$attributes>$hidden_elements</div>";
+  return "<div$attributes>{$variables['hidden_elements']}</div>";
 }
Index: views_slideshow_plugin_style_slideshow.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/Attic/views_slideshow_plugin_style_slideshow.inc,v
retrieving revision 1.1.2.1.2.9.2.5
diff -u -p -r1.1.2.1.2.9.2.5 views_slideshow_plugin_style_slideshow.inc
--- views_slideshow_plugin_style_slideshow.inc	5 Oct 2010 05:45:50 -0000	1.1.2.1.2.9.2.5
+++ views_slideshow_plugin_style_slideshow.inc	14 Dec 2010 14:03:02 -0000
@@ -26,7 +26,7 @@ class views_slideshow_plugin_style_slide
     }
 
     // Eveything below here is what's needed for views slideshow.
-    if (in_array($options['mode'], array('singleframe', 'thumbnailhover', 'menu', 'slider', 'ddblock')) && is_array($options[$options['mode']])) {
+    if (isset($options['mode']) && in_array($options['mode'], array('singleframe', 'thumbnailhover', 'menu', 'slider', 'ddblock')) && is_array($options[$options['mode']])) {
       foreach ($options[$options['mode']] as $index => $value) {
         $this->options['views_slideshow_' . $options['mode']][$index] = $value;
       }
@@ -47,6 +47,7 @@ class views_slideshow_plugin_style_slide
   // Render the given style.
   function options_form(&$form, &$form_state) {
     module_load_all_includes('views_slideshow.inc');
+    ctools_include('dependent');
     parent::options_form($form, $form_state);
     
     $modules = module_invoke_all('views_slideshow_modes');
@@ -64,8 +65,8 @@ class views_slideshow_plugin_style_slide
         $form[$module . '-prefix'] = array(
           '#type' => 'hidden',
           '#id' => $module . '-options-wrapper',
-          '#prefix' => '<div><div id="' . $module .'-options-wrapper">',
-          '#process' => array('views_process_dependency'),
+          '#prefix' => '<div><div id="' . $module . '-options-wrapper">',
+          '#process' => array('ctools_dependent_process'),
           '#dependency' => array('edit-style-options-mode' => array($module)),
         );
 
@@ -73,9 +74,9 @@ class views_slideshow_plugin_style_slide
           '#type' => 'fieldset',
           '#title' => t('!module options', array('!module' => $modules[$module])),
           '#collapsible' => TRUE,
-          '#attributes' => array('class' => $module),
+          '#attributes' => array('class' => array($module)),
         );
-        $function = $module .'_views_slideshow_options_form';
+        $function = $module . '_views_slideshow_options_form';
         call_user_func_array($function, array(&$form, &$form_state, &$this));
 
         $form[$module . '-suffix']  = array(
@@ -85,7 +86,7 @@ class views_slideshow_plugin_style_slide
     }
     else {
       $form['enable_module'] = array(
-        '#value' => t('There is no Views Slideshow plugin enabled. Go to the !modules and enable a Views Slideshow plugin module. For example Views Slideshow Singleframe.', array('!modules' => l('Modules Page', 'admin/build/modules'))),
+        '#value' => t('There is no Views Slideshow plugin enabled. Go to the !modules and enable a Views Slideshow plugin module. For example Views Slideshow Singleframe.', array('!modules' => l(t('Modules Page'), 'admin/build/modules'))),
       );
     }
   }
@@ -98,7 +99,7 @@ class views_slideshow_plugin_style_slide
     }
   }
   
-  function options_submit($form, &$form_state) {
+  function options_submit(&$form, &$form_state) {
     module_load_all_includes('views_slideshow.inc');
     foreach (module_implements('views_slideshow_options_form_submit') as $module) {
       $function = $module . '_views_slideshow_options_form_submit';
Index: contrib/views_slideshow_cycle/views_slideshow_cycle.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/Attic/views_slideshow_cycle.info,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views_slideshow_cycle.info
--- contrib/views_slideshow_cycle/views_slideshow_cycle.info	24 Jul 2010 04:25:46 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/views_slideshow_cycle.info	14 Dec 2010 14:03:02 -0000
@@ -3,4 +3,7 @@ name = Views Slideshow: Cycle
 description = Adds a Rotating slideshow mode to Views Slideshow.
 dependencies[] = views_slideshow
 package = Views
-core = 6.x
+core = 7.x
+files[] = views_slideshow_cycle.module
+files[] = views_slideshow_cycle.views_slideshow.inc
+files[] = theme/views_slideshow_cycle.theme.inc
Index: contrib/views_slideshow_cycle/views_slideshow_cycle.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/Attic/views_slideshow_cycle.js,v
retrieving revision 1.1.2.13
diff -u -p -r1.1.2.13 views_slideshow_cycle.js
--- contrib/views_slideshow_cycle/views_slideshow_cycle.js	29 Sep 2010 03:29:45 -0000	1.1.2.13
+++ contrib/views_slideshow_cycle/views_slideshow_cycle.js	14 Dec 2010 14:03:03 -0000
@@ -5,10 +5,13 @@
  *  A simple jQuery Cycle Div Slideshow Rotator.
  */
 
+(function($) {
+
 /**
  * This will set our initial behavior, by starting up each individual slideshow.
  */
-Drupal.behaviors.viewsSlideshowCycle = function (context) {
+Drupal.behaviors.viewsSlideshowCycle = {};
+Drupal.behaviors.viewsSlideshowCycle.attach = function (context) {
   $('.views_slideshow_cycle_main:not(.viewsSlideshowCycle-processed)', context).addClass('viewsSlideshowCycle-processed').each(function() {
     var fullId = '#' + $(this).attr('id');
     var settings = Drupal.settings.viewsSlideshowCycle[fullId];
@@ -581,3 +584,4 @@ function viewsSlideshowCycleIsVisible(el
   }
 }
 
+})(jQuery);
\ No newline at end of file
Index: contrib/views_slideshow_cycle/views_slideshow_cycle.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/Attic/views_slideshow_cycle.module,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 views_slideshow_cycle.module
--- contrib/views_slideshow_cycle/views_slideshow_cycle.module	29 Sep 2010 03:07:49 -0000	1.1.2.6
+++ contrib/views_slideshow_cycle/views_slideshow_cycle.module	14 Dec 2010 14:03:03 -0000
@@ -22,12 +22,12 @@ function views_slideshow_cycle_init() {
 
   // Otherwise, we'll add the version included with this module.
   if (!$js) {
-    drupal_add_js(drupal_get_path('module', 'views_slideshow') . '/js/jquery.cycle.all.min.js');
+    drupal_add_js(drupal_get_path('module', 'views_slideshow') . '/js/jquery.cycle.all.min.js', array('group' => JS_LIBRARY));
   }
 
   $module_path = drupal_get_path('module', 'views_slideshow_cycle');
-  drupal_add_js($module_path . '/views_slideshow_cycle.js', 'module');
-  drupal_add_css($module_path . '/views_slideshow_cycle.css', 'module');
+  drupal_add_js($module_path . '/views_slideshow_cycle.js');
+  drupal_add_css($module_path . '/views_slideshow_cycle.css');
 }
 
 /**
@@ -36,76 +36,76 @@ function views_slideshow_cycle_init() {
 function views_slideshow_cycle_theme($existing, $type, $theme, $path) {
   return array(
     'views_slideshow_cycle' => array(
-      'arguments' => array('view' => NULL, 'options' => array(), 'rows' => array(), 'title' => ''),
+      'variables' => array('view' => NULL, 'options' => array(), 'rows' => array(), 'title' => ''),
       'template' => 'theme/views-slideshow-cycle',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_controls' => array(
-      'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
+      'variables' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-controls',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_control_previous' => array(
-      'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
+      'variables' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-control-previous',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_control_pause' => array(
-      'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
+      'variables' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-control-pause',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_control_next' => array(
-      'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
+      'variables' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-control-next',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_pager' => array(
-      'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
+      'variables' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_pager_numbered' => array(
-      'arguments' => array('view' => NULL, 'attributes' => NULL, 'options' => array()),
+      'variables' => array('view' => NULL, 'attributes_array' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-pager-numbered',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_pager_thumbnails' => array(
-      'arguments' => array('view' => NULL, 'attributes' => NULL, 'options' => array()),
+      'variables' => array('view' => NULL, 'attributes_array' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-pager-thumbnails',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_pager_field' => array(
-      'arguments' => array('view' => NULL, 'attributes' => NULL, 'options' => array()),
+      'variables' => array('view' => NULL, 'attributes_array' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-pager-field',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_pager_field_field' => array(
-      'arguments' => array('view' => NULL, 'field' => NULL, 'count' => NULL),
+      'variables' => array('view' => NULL, 'field' => NULL, 'count' => NULL),
       'template' => 'theme/views-slideshow-cycle-pager-field-field',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_pager_field_item' => array(
-      'arguments' => array('item' => NULL, 'vss_id' => NULL, 'count' => NULL),
+      'variables' => array('item' => NULL, 'vss_id' => NULL, 'count' => NULL),
       'template' => 'theme/views-slideshow-cycle-pager-field-item',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_slide_counter' => array(
-      'arguments' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
+      'variables' => array('vss_id' => '', 'view' => NULL, 'options' => array()),
       'template' => 'theme/views-slideshow-cycle-slide-counter',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_main_frame' => array(
-      'arguments' => array('view' => NULL, 'rows' => NULL, 'vss_id' => NULL, 'mode' => NULL),
+      'variables' => array('view' => NULL, 'rows' => NULL, 'vss_id' => NULL, 'mode' => NULL),
       'template' => 'theme/views-slideshow-cycle-main-frame',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
-    ),    
+    ),
     'views_slideshow_cycle_main_frame_row' => array(
-      'arguments' => array('items' => NULL, 'vss_id' => NULL, 'count' => NULL),
+      'variables' => array('items' => NULL, 'vss_id' => NULL, 'count' => NULL),
       'template' => 'theme/views-slideshow-cycle-main-frame-row',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
     'views_slideshow_cycle_main_frame_row_item' => array(
-      'arguments' => array('item' => NULL, 'item_count' => NULL),
+      'variables' => array('item' => NULL, 'item_count' => NULL),
       'template' => 'theme/views-slideshow-cycle-main-frame-row-item',
       'file' => 'theme/views_slideshow_cycle.theme.inc',
     ),
@@ -129,7 +129,7 @@ function views_slideshow_cycle_help($pat
 }
 
 /**
- * Implementation of hook_views_cycle_skins().
+ * Implements hook_views_cycle_skins().
  */
 function views_slideshow_cycle_views_slideshow_cycle_skins() {
   $skins['default'] = array(
Index: contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/Attic/views_slideshow_cycle.views_slideshow.inc,v
retrieving revision 1.1.2.14
diff -u -p -r1.1.2.14 views_slideshow_cycle.views_slideshow.inc
--- contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc	5 Oct 2010 05:45:50 -0000	1.1.2.14
+++ contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc	14 Dec 2010 14:03:03 -0000
@@ -165,7 +165,7 @@ function views_slideshow_cycle_views_sli
 }
 
 function views_slideshow_cycle_views_slideshow_options_form(&$form, &$form_state, &$view) {
-  
+  ctools_include('dependent');
   // Style
   $form['views_slideshow_cycle']['style'] = array(
     '#value' => '<h2>' . t('Style') . '</h2>',
@@ -220,14 +220,14 @@ function views_slideshow_cycle_views_sli
     'turnRight' => 'turnRight',
     'uncover' => 'uncover',
     'wipe' => 'wipe',
-    'zoom' => 'zoom' 
+    'zoom' => 'zoom'
   );
   $form['views_slideshow_cycle']['effect'] = array(
     '#type' => 'select',
     '#title' => t('Effect'),
     '#options' => $effects,
     '#default_value' => $view->options['views_slideshow_cycle']['effect'],
-    '#description' => t('The transition effect that will be used to change between images. Not all options below may be relevant depending on the effect. ' . l('Follow this link to see examples of each effect.', 'http://jquery.malsup.com/cycle/browser.html', array('attributes' => array('target' => '_blank')))),
+    '#description' => t('The transition effect that will be used to change between images. Not all options below may be relevant depending on the effect. ' . l(t('Follow this link to see examples of each effect.'), 'http://jquery.malsup.com/cycle/browser.html', array('attributes' => array('target' => '_blank')))),
   );
    
   // Transition advanced options
@@ -241,7 +241,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Timer delay'),
     '#default_value' => $view->options['views_slideshow_cycle']['timeout'],
     '#description' => t('Amount of time in milliseconds between transitions. Set the value to 0 to not rotate the slideshow automatically.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-transition-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['speed'] = array(
@@ -249,7 +249,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Speed'),
     '#default_value' => $view->options['views_slideshow_cycle']['speed'],
     '#description' => t('Time in milliseconds that each transition lasts. Numeric only!'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-transition-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['delay'] = array(
@@ -257,7 +257,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Initial slide delay offset'),
     '#default_value' => $view->options['views_slideshow_cycle']['delay'],
     '#description' => t('Amount of time in milliseconds for the first slide to transition. This number will be added to Timer delay to create the initial delay.  For example if Timer delay is 4000 and Initial delay is 2000 then the first slide will change at 6000ms (6 seconds).  If Initial delay is -2000 then the first slide will change at 2000ms (2 seconds).'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-transition-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['sync'] = array(
@@ -265,7 +265,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Sync'),
     '#default_value' => $view->options['views_slideshow_cycle']['sync'],
     '#description' => t('The sync option controls whether the slide transitions occur simultaneously. The default is selected which means that the current slide transitions out as the next slide transitions in. By unselecting this option you can get some interesting twists on your transitions.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-transition-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['random'] = array(
@@ -273,7 +273,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Random'),
     '#description' => t('This option controls the order items are displayed. The default setting, unselected, uses the views ordering. Selected will cause the images to display in a random order.'),
     '#default_value' => $view->options['views_slideshow_cycle']['random'],
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-transition-advanced' => array(1)),
   );
   
@@ -305,7 +305,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Start Slideshow Paused'),
     '#default_value' => $view->options['views_slideshow_cycle']['start_paused'],
     '#description' => t('Start the slideshow in the paused state.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-action-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['remember_slide'] = array(
@@ -313,7 +313,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Start On Last Slide Viewed'),
     '#default_value' => $view->options['views_slideshow_cycle']['remember_slide'],
     '#description' => t('When the user leaves a page with a slideshow and comes back start them on the last slide viewed.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-action-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['remember_slide_days'] = array(
@@ -322,7 +322,7 @@ function views_slideshow_cycle_views_sli
     '#default_value' => $view->options['views_slideshow_cycle']['remember_slide_days'],
     '#description' => t('The number of days to have the site remember the last slide. Default is 1'),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency_count' => 2,
     '#dependency' => array(
       'edit-style-options-views-slideshow-cycle-action-advanced' => array(1),
@@ -334,7 +334,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Pause When the Slideshow is Not Visible'),
     '#default_value' => $view->options['views_slideshow_cycle']['pause_when_hidden'],
     '#description' => t('When the slideshow is scrolled out of view or when a window is resized that hides the slideshow, this will pause the slideshow.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-action-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['pause_when_hidden_type'] = array(
@@ -348,7 +348,7 @@ function views_slideshow_cycle_views_sli
     ),
     '#default_value' => $view->options['views_slideshow_cycle']['pause_when_hidden_type'],
     '#description' => t('Choose how to calculate how much of the slide has to be shown. Entire Slide: All the slide has to be shown. Vertical: Set amount of height that has to be shown. Horizontal: Set amount of width that has to be shown. Area: Set total area that has to be shown.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency_count' => 2,
     '#dependency' => array(
       'edit-style-options-views-slideshow-cycle-action-advanced' => array(1),
@@ -361,7 +361,7 @@ function views_slideshow_cycle_views_sli
     '#default_value' => $view->options['views_slideshow_cycle']['amount_allowed_visible'],
     '#description' => t("The amount of the slide that needs to be shown to have it rotate. You can set the value in percentage (ex: 50%) or in pixels (ex: 250). The slidehsow will not rotate until it's height/width/total area, depending on the calculation method you have chosen above, is less than the value you have entered in this field."),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency_count' => 3,
     '#dependency' => array(
       'edit-style-options-views-slideshow-cycle-action-advanced' => array(1),
@@ -378,7 +378,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('End slideshow after last slide'),
     '#default_value' => $view->options['views_slideshow_cycle']['nowrap'],
     '#description' => t('If selected the slideshow will end when it gets to the last slide.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-action-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['fixed_height'] = array(
@@ -386,7 +386,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Make the slide window height fit the largest slide'),
     '#default_value' => $view->options['views_slideshow_cycle']['fixed_height'],
     '#description' => t('If unselected then if the slides are different sizes the height of the slide area will change as the slides change.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-action-advanced' => array(1)),
   );
   $form['views_slideshow_cycle']['items_per_slide'] = array(
@@ -395,7 +395,7 @@ function views_slideshow_cycle_views_sli
     '#default_value' => $view->options['views_slideshow_cycle']['items_per_slide'],
     '#description' => t('The number of items per slide'),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-action-advanced' => array(1)),
   );
   
@@ -429,8 +429,8 @@ function views_slideshow_cycle_views_sli
         $pager_field['#dependency']['edit-style-options-views-slideshow-cycle-pager'] = array('top', 'bottom');
         $pager_field['#dependency']['edit-style-options-views-slideshow-cycle-pager-type'] = array($pager_key);
         $pager_field['#dependency_count'] = count($pager_field['#dependency']);
-        if (!isset($pager_field['#process']) || !in_array('views_process_dependency', $pager_field['#process'])) {
-          $pager_field['#process'][] = 'views_process_dependency';
+        if (!isset($pager_field['#process']) || !in_array('ctools_dependent_process', $pager_field['#process'])) {
+          $pager_field['#process'][] = 'ctools_dependent_process';
         }
         
         $pager_fields[$pager_field_key] = $pager_field;
@@ -446,7 +446,7 @@ function views_slideshow_cycle_views_sli
     '#options' => $options,
     '#default_value' => $view->options['views_slideshow_cycle']['pager_type'],
     '#description' => t('Style of the pager.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-pager' => array('top', 'bottom')),
   );
   
@@ -458,7 +458,7 @@ function views_slideshow_cycle_views_sli
     '#title' => t('Activate Slide and Pause on Pager Hover'),
     '#default_value' => $view->options['views_slideshow_cycle']['pager_hover'],
     '#description' => t('Should the slide be activated and paused when hovering over a pager item.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-pager' => array('top', 'bottom')),
   );
   
@@ -469,7 +469,7 @@ function views_slideshow_cycle_views_sli
     '#options' => $weights,
     '#default_value' => $view->options['views_slideshow_cycle']['pager_weight'],
     '#description' => t('Determines in what order the pager appears.  A lower weight will cause the pager to be above higher weight items.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-pager' => array('top', 'bottom')),
   );
   
@@ -490,7 +490,7 @@ function views_slideshow_cycle_views_sli
     '#options' => $weights,
     '#default_value' => $view->options['views_slideshow_cycle']['controls_weight'],
     '#description' => t('Determines in what order the controls appear.  A lower weight will cause the controls to be above higher weight items.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-controls' => array('top', 'bottom')),
   );
   
@@ -512,7 +512,7 @@ function views_slideshow_cycle_views_sli
     '#options' => $weights,
     '#default_value' => $view->options['views_slideshow_cycle']['slide_counter_weight'],
     '#description' => t('Determines in what order the slide counter appears.  A lower weight will cause the slide counter to be above higher weight items.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-cycle-slide-counter' => array('top', 'bottom')),
   );
   
@@ -543,7 +543,7 @@ function views_slideshow_cycle_views_sli
   $form['views_slideshow_cycle']['cycle_options'] = array(
     '#type' => 'checkbox',
     '#title' => t('View All jQuery Cycle Options'),
-    '#default_value' => $view->options['views_slideshow_cycle']['cycle_options'], 
+    '#default_value' => $view->options['views_slideshow_cycle']['cycle_options'],
   );
   
   // All the jquery cycle options according to
@@ -609,7 +609,7 @@ function views_slideshow_cycle_views_sli
       '#type' => 'checkbox',
       '#title' => t('Override !name setting', array('!name' => $name)),
       '#default_value' => $view->options['views_slideshow_cycle']['advanced_use_' . $lower_name],
-      '#process' => array('views_process_dependency'),
+      '#process' => array('ctools_dependent_process'),
       '#dependency' => array('edit-style-options-views-slideshow-cycle-cycle-options' => array(1)),
     );
     
@@ -618,7 +618,7 @@ function views_slideshow_cycle_views_sli
       '#title' => t('!lower_name', array('!lower_name' => $lower_name)),
       '#default_value' => $view->options['views_slideshow_cycle']['advanced_' . $lower_name],
       '#description' => $description,  // Don't need to wrap in t() since it's done above.
-      '#process' => array('views_process_dependency'),
+      '#process' => array('ctools_dependent_process'),
       '#dependency_count' => 2,
       '#dependency' => array(
         'edit-style-options-views-slideshow-cycle-cycle-options' => array(1),
@@ -629,7 +629,7 @@ function views_slideshow_cycle_views_sli
 }
 
 /**
- * Implementation of hook_views_slideshow_cycle_pager_settings
+ * Implements hook_views_slideshow_cycle_pager_settings().
  */
 function views_slideshow_cycle_views_slideshow_cycle_pager_settings($view, $option_values, $dependency_prefix) {
   // Settings for Numbered Pager
@@ -674,7 +674,7 @@ function views_slideshow_cycle_views_sli
           '#description' => t("Choose the fields that will appear in the pager."),
           '#prefix' => '<div id="edit-style-options-views-slideshow-cycle-pager-fields-wrapper"><div id="edit-style-options-views-slideshow-cycle-pager-fields">',
           '#process' => array(
-            'expand_checkboxes',
+            'form_process_checkboxes',
           ),
           '#suffix' => '</div></div>',
         ),
@@ -713,7 +713,7 @@ function views_slideshow_cycle_get_skins
   if (empty($skins)) {
     $skins = array();
     foreach (module_implements('views_slideshow_cycle_skins') as $module) {
-      $skin_items = call_user_func($module .'_views_slideshow_cycle_skins');
+      $skin_items = call_user_func($module . '_views_slideshow_cycle_skins');
       if (isset($skin_items) && is_array($skin_items)) {
         foreach (array_keys($skin_items) as $skin) {
           // Ensure that the definition is complete, so we don't need lots
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-controls.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-controls.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-controls.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-controls.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-controls.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,4 +1,4 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <?php print $rendered_control_previous; ?>
   <?php print $rendered_control_pause; ?>
   <?php print $rendered_control_next; ?>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row-item.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-main-frame-row-item.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-main-frame-row-item.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row-item.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row-item.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,3 +1,3 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <?php print $item; ?>
 </div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-main-frame-row.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-main-frame-row.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,3 +1,3 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <?php print $rendered_items; ?>
 </div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-main-frame.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-main-frame.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,3 +1,3 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <?php print $rendered_rows; ?>
 </div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-field-item.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-pager-field-item.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-pager-field-item.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-field-item.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-field-item.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,3 +1,3 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <?php print $item; ?>
 </div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-field.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-pager-field.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-pager-field.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-field.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-field.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,3 +1,3 @@
-<div<?php print drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <?php print $rendered_field_items; ?>
 </div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-numbered.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-pager-numbered.tpl.php,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 views-slideshow-cycle-pager-numbered.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-numbered.tpl.php	29 Sep 2010 03:07:49 -0000	1.1.2.2
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-numbered.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,4 +1 @@
-<?php
-  $attributes['class'] .= ' views_slideshow_pager_numbered';
-?>
-<div<?php print drupal_attributes($attributes); ?>></div>
+<div<?php print $attributes; ?>></div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-thumbnails.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-pager-thumbnails.tpl.php,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 views-slideshow-cycle-pager-thumbnails.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-thumbnails.tpl.php	29 Sep 2010 03:07:49 -0000	1.1.2.2
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-pager-thumbnails.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,4 +1 @@
-<?php
-  $attributes['class'] .= ' views_slideshow_pager_thumbnails';
-?>
-<div<?php print drupal_attributes($attributes); ?>></div>
+<div<?php print $attributes; ?>></div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle-slide-counter.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle-slide-counter.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle-slide-counter.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle-slide-counter.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle-slide-counter.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -1,3 +1,3 @@
-<div<?php drupal_attributes($attributes); ?>>
+<div<?php print $attributes; ?>>
   <span class="num">1</span> <?php print t('of'); ?> <span class="total">1</span>
 </div>
Index: contrib/views_slideshow_cycle/theme/views-slideshow-cycle.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views-slideshow-cycle.tpl.php,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 views-slideshow-cycle.tpl.php
--- contrib/views_slideshow_cycle/theme/views-slideshow-cycle.tpl.php	27 Sep 2010 05:27:50 -0000	1.1.2.1
+++ contrib/views_slideshow_cycle/theme/views-slideshow-cycle.tpl.php	14 Dec 2010 14:03:03 -0000
@@ -9,7 +9,7 @@
 
 <div class="skin-<?php print $options['views_slideshow_cycle']['skin']; ?>">
   <?php if (isset($top_widget_rendered)): ?>
-    <div class="views-slideshow-controls-top clear-block">
+    <div class="views-slideshow-controls-top clearfix">
       <?php print $top_widget_rendered; ?>
     </div>
   <?php endif; ?>
@@ -17,7 +17,7 @@
   <?php print $slideshow; ?>
   
   <?php if (isset($bottom_widget_rendered)): ?>
-    <div class="views-slideshow-controls-bottom clear-block">
+    <div class="views-slideshow-controls-bottom clearfix">
       <?php print $bottom_widget_rendered; ?>
     </div>
   <?php endif; ?>
Index: contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_cycle/theme/Attic/views_slideshow_cycle.theme.inc,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 views_slideshow_cycle.theme.inc
--- contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc	29 Sep 2010 07:18:41 -0000	1.1.2.3
+++ contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc	14 Dec 2010 14:03:03 -0000
@@ -64,9 +64,9 @@ function template_preprocess_views_slide
   // to the id to make it unique.
   $slideshow_count = 1;
   $current_settings = drupal_add_js();
-  foreach ($current_settings['setting'] AS $current_setting) {
+  foreach ($current_settings['settings']['data'] AS $current_setting) {
     if (isset($current_setting['viewsSlideshowCycle'])) {
-      $current_keys = array_keys($current_setting['viewsSlideshowCycle']);
+      $current_keys = isset($current_setting['viewsSlideshowCycle']) ? array_keys($current_setting['viewsSlideshowCycle']) : array();
       if (stristr($current_keys[0], '#views_slideshow_cycle_main_' . $vss_id)) {
         $slideshow_count++;
       }
@@ -96,17 +96,17 @@ function template_preprocess_views_slide
   // Enqueue any stylesheets set for the skin on this view are added.
   $skin_path = drupal_get_path('module', $skin_info['module']);
   if ($skin_info['path']) {
-    $skin_path .= '/'. $skin_info['path'];
+    $skin_path .= '/' . $skin_info['path'];
   }
   
   if (!empty($skin_info['stylesheets'])) {
     foreach ($skin_info['stylesheets'] as $stylesheet) {
-      drupal_add_css($skin_path .'/'. $stylesheet);
+      drupal_add_css($skin_path . '/' . $stylesheet);
     }
   }
 
-  $hidden_elements = theme('views_slideshow_cycle_main_frame', $view, $rows, $vss_id, $options['mode']);
-  $vars['slideshow'] = theme('views_slideshow_main_section', $vss_id, $hidden_elements, 'views_slideshow_cycle');
+  $hidden_elements = theme('views_slideshow_cycle_main_frame', array('view' => $view, 'rows' => $rows, 'vss_id' => $vss_id, 'mode' => $options['mode']));
+  $vars['slideshow'] = theme('views_slideshow_main_section', array('id' => $vss_id, 'hidden_elements' => $hidden_elements, 'plugin' => 'views_slideshow_cycle'));
   
   $weight = array(
     'top' => array(),
@@ -144,7 +144,7 @@ function template_preprocess_views_slide
       
       $vars[$location . '_widget_rendered'] = '';
       foreach ($data as $type => $order) {
-        $vars[$type] = theme('views_slideshow_cycle_' . $type, $vss_id, $view, $options);
+        $vars[$type] = theme('views_slideshow_cycle_' . $type, array('vss_id' => $vss_id, 'view' => $view, 'options' => $options));
         $vars[$location . '_widget_rendered'] .= $vars[$type];
       }
     }
@@ -159,8 +159,8 @@ function template_preprocess_views_slide
 
 function template_preprocess_views_slideshow_cycle_main_frame(&$vars) {
   // Add the slideshow elements.
-  $vars['attributes']['id'] = "views_slideshow_cycle_teaser_section_" . $vars['vss_id'];
-  $vars['attributes']['class'] = 'views_slideshow_cycle_teaser_section';
+  $vars['attributes_array']['id'] = "views_slideshow_cycle_teaser_section_" . $vars['vss_id'];
+  $vars['attributes_array']['class'] = array('views_slideshow_cycle_teaser_section', 'clearfix');
   
   $styles = '';
   if (isset($vars['view']->display_handler->display->display_options['style_options']['views_slideshow_cycle'])) {
@@ -191,7 +191,7 @@ function template_preprocess_views_slide
   foreach ($vars['rows'] as $count => $item) {
     $items[] = $item;
     if (count($items) == $items_per_slide || $count == (count($rows)-1)) {
-      $rendered_rows .= theme('views_slideshow_cycle_main_frame_row', $items, $vars['vss_id'], $slideshow_count);
+      $rendered_rows .= theme('views_slideshow_cycle_main_frame_row', array('items' => $items, 'vss_id' => $vars['vss_id'], 'count' => $slideshow_count));
       $items = array();
       $slideshow_count++;
     }
@@ -216,12 +216,12 @@ function template_preprocess_views_slide
   }
   $classes[] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
 
-  $vars['attributes']['class'] = implode(' ', $classes);
-  $vars['attributes']['id'] = "views_slideshow_cycle_div_" . $vars['vss_id'] . "_" . $vars['count'];
+  $vars['attributes_array']['class'] = $classes;
+  $vars['attributes_array']['id'] = "views_slideshow_cycle_div_" . $vars['vss_id'] . "_" . $vars['count'];
 
   $vars['rendered_items'] = '';
   foreach ($vars['items'] as $item_count => $item) {
-    $vars['rendered_items'] .= theme('views_slideshow_cycle_main_frame_row_item', $item, $item_count);
+    $vars['rendered_items'] .= theme('views_slideshow_cycle_main_frame_row_item', array('item' => $item, 'item_count' => $item_count));
   }
 }
 
@@ -236,7 +236,7 @@ function template_preprocess_views_slide
   else {
     $classes[] = 'views-row-odd';
   }
-  $vars['attributes']['class'] = implode(' ', $classes);
+  $vars['attributes_array']['class'] = $classes;
 }
 
 /**
@@ -250,17 +250,17 @@ function template_preprocess_views_slide
     'views_slideshow_controls',
   );
 
-  $vars['attributes']['class'] = implode(' ', $classes);
-  $vars['attributes']['id'] = "views_slideshow_cycle_controls_" . $vars['vss_id'];
-  
-  $vars['rendered_control_previous'] = theme('views_slideshow_cycle_control_previous', $vars['vss_id'], $vars['view'], $vars['options']);
+  $vars['attributes_array']['class'] = $classes;
+  $vars['attributes_array']['id'] = "views_slideshow_cycle_controls_" . $vars['vss_id'];
+
+  $vars['rendered_control_previous'] = theme('views_slideshow_cycle_control_previous', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'options' => $vars['options']));
 
   $vars['rendered_control_pause'] = '';
   if ($vars['options']['views_slideshow_cycle']['timeout']) {
-    $vars['rendered_control_pause'] = theme('views_slideshow_cycle_control_pause', $vars['vss_id'], $vars['view'], $vars['options']);
+    $vars['rendered_control_pause'] = theme('views_slideshow_cycle_control_pause', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'options' => $vars['options']));
   }
-  
-  $vars['rendered_control_next'] = theme('views_slideshow_cycle_control_next', $vars['vss_id'], $vars['view'], $vars['options']);
+
+  $vars['rendered_control_next'] = theme('views_slideshow_cycle_control_next', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'options' => $vars['options']));
 }
 
 /**
@@ -271,7 +271,7 @@ function template_preprocess_views_slide
 function template_preprocess_views_slideshow_cycle_control_previous(&$vars) {
   $vars['rendered_previous_link'] = l(t('Previous'), '#', array(
     'attributes' => array(
-      'class' => 'views_slideshow_cycle_previous views_slideshow_previous',
+      'class' => array('views_slideshow_cycle_previous', 'views_slideshow_previous'),
       'id' => "views_slideshow_cycle_prev_" . $vars['vss_id'],
     ),
     'fragment' => ' ',
@@ -287,7 +287,7 @@ function template_preprocess_views_slide
 function template_preprocess_views_slideshow_cycle_control_pause(&$vars) {
   $vars['rendered_pause_link'] = l(t('Pause'), '', array(
     'attributes' => array(
-      'class' => 'views_slideshow_cycle_pause views_slideshow_pause',
+      'class' => array('views_slideshow_cycle_pause', 'views_slideshow_pause'),
       'id' => "views_slideshow_cycle_playpause_" . $vars['vss_id'],
     ),
     'fragment' => ' ',
@@ -303,7 +303,7 @@ function template_preprocess_views_slide
 function template_preprocess_views_slideshow_cycle_control_next(&$vars) {
   $vars['rendered_next_link'] = l(t('Next'), '#', array(
     'attributes' => array(
-      'class' => 'views_slideshow_cycle_next views_slideshow_next',
+      'class' => array('views_slideshow_cycle_next', 'views_slideshow_next'),
       'id' => "views_slideshow_cycle_next_" . $vars['vss_id'],
     ),
     'fragment' => ' ',
@@ -316,13 +316,15 @@ function template_preprocess_views_slide
  *
  * @ingroup themeable
  */
-function theme_views_slideshow_cycle_pager($vss_id, $view, $options) {
+function theme_views_slideshow_cycle_pager($vars) {
   $output = '';
-
+  $vss_id = $vars['vss_id'];
+  $view = $vars['view'];
+  $options = $vars['options'];
   // Create some attributes
-  $attributes['class'] = 'views_slideshow_cycle_pager';
+  $attributes['class'] = array('views_slideshow_cycle_pager');
   $attributes['id'] = 'views_slideshow_cycle_pager_' . $vss_id;
-  
+
   // Allow other modules change the output
   // Using foreach instead of module_invoke_all because module_invoke_all
   // doesn't support pass by reference.
@@ -335,35 +337,37 @@ function theme_views_slideshow_cycle_pag
 }
 
 /**
- * Implementation of hook_views_slideshow_cycle_pager_theme.
+ * Implements hook_views_slideshow_cycle_pager_theme().
  */
 function views_slideshow_cycle_views_slideshow_cycle_pager_theme(&$output, $vss_id, $view, $options, $attributes) {
   switch ($options['pager_type']) {
     case 'numbered':
-      $output = theme('views_slideshow_cycle_pager_numbered', $view, $attributes, $options);
+      $attributes['class'][] = 'views_slideshow_pager_numbered';
+      $output = theme('views_slideshow_cycle_pager_numbered', array('view' => $view, 'attributes_array' => $attributes, 'options' => $options));
       break;
     
     case 'thumbnails':
-      $output = theme('views_slideshow_cycle_pager_thumbnails', $view, $attributes, $options);
+      $attributes['class'][] = 'views_slideshow_pager_thumbnails';
+      $output = theme('views_slideshow_cycle_pager_thumbnails', array('view' => $view, 'attributes_array' => $attributes, 'options' => $options));
       break;
     
     case 'fields':
-      $output = theme('views_slideshow_cycle_pager_field', $view, $attributes, $options);
+      $output = theme('views_slideshow_cycle_pager_field', array('view' => $view, 'attributes_array' => $attributes, 'options' => $options));
       break;
   }
 }
 
 function template_preprocess_views_slideshow_cycle_pager_field(&$vars) {
-  $vars['attributes']['class'] .= ' views_slideshow_pager_field';
+  $vars['attributes_array']['class'][] = ' views_slideshow_pager_field';
   $vars['rendered_field_items'] = '';
   foreach ($vars['view']->result as $count => $node) {
     $rendered_fields = '';
     foreach ($vars['options']['pager_fields'] as $field => $use) {
       if ($use !== 0 && is_object($vars['view']->field[$field])) {
-        $rendered_fields .= theme('views_slideshow_cycle_pager_field_field', $vars['view'], $field, $count);
+        $rendered_fields .= theme('views_slideshow_cycle_pager_field_field', array('view' => $vars['view'], 'field' => $field, 'count' => $count));
       }
     }
-    $vars['rendered_field_items'] .= theme('views_slideshow_cycle_pager_field_item', $rendered_fields, $vars['vss_id'], $count);
+    $vars['rendered_field_items'] .= theme('views_slideshow_cycle_pager_field_item', array('item' => $rendered_fields, 'vss_id' => $vars['vss_id'], 'count' => $count));
   }
 }
 
@@ -382,8 +386,8 @@ function template_preprocess_views_slide
   }
   $classes[] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
 
-  $vars['attributes']['class'] = implode(' ', $classes);
-  $vars['attributes']['id'] = 'views_slideshow_cycle_div_pager_item_' . $vars['vss_id'] . '_' . $vars['count'];
+  $vars['attributes_array']['class'] = $classes;
+  $vars['attributes_array']['id'] = 'views_slideshow_cycle_div_pager_item_' . $vars['vss_id'] . '_' . $vars['count'];
 }
 
 /**
@@ -392,6 +396,6 @@ function template_preprocess_views_slide
  * @ingroup themeable
  */
 function template_preprocess_views_slideshow_cycle_slide_counter(&$vars) {
-  $vars['attributes']['class'] = 'views_slideshow_cycle_slide_counter views_slideshow_slide_counter';
-  $vars['attributes']['id'] = "views_slideshow_cycle_slide_counter_" . $vars['vss_id'];
+  $vars['attributes_array']['class'] = array('views_slideshow_cycle_slide_counter', 'views_slideshow_slide_counter');
+  $vars['attributes_array']['id'] = "views_slideshow_cycle_slide_counter_" . $vars['vss_id'];
 }
Index: contrib/views_slideshow_singleframe/views_slideshow_singleframe.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_singleframe/Attic/views_slideshow_singleframe.info,v
retrieving revision 1.1.2.1.4.1
diff -u -p -r1.1.2.1.4.1 views_slideshow_singleframe.info
--- contrib/views_slideshow_singleframe/views_slideshow_singleframe.info	24 Jul 2010 19:01:25 -0000	1.1.2.1.4.1
+++ contrib/views_slideshow_singleframe/views_slideshow_singleframe.info	14 Dec 2010 14:03:03 -0000
@@ -3,4 +3,8 @@ name = Views Slideshow: SingleFrame (Leg
 description = Adds a Single Frame slideshow mode to Views Slideshows.
 dependencies[] = views_slideshow
 package = Views
-core = 6.x
+core = 7.x
+files[] = views_slideshow_singleframe.module
+files[] = views_slideshow_singleframe.theme.inc
+files[] = views_slideshow_singleframe.views.inc
+files[] = views_slideshow_singleframe.views_slideshow.inc
Index: contrib/views_slideshow_singleframe/views_slideshow_singleframe.views_slideshow.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_singleframe/Attic/views_slideshow_singleframe.views_slideshow.inc,v
retrieving revision 1.1.2.1.2.17.2.13
diff -u -p -r1.1.2.1.2.17.2.13 views_slideshow_singleframe.views_slideshow.inc
--- contrib/views_slideshow_singleframe/views_slideshow_singleframe.views_slideshow.inc	29 Sep 2010 03:07:49 -0000	1.1.2.1.2.17.2.13
+++ contrib/views_slideshow_singleframe/views_slideshow_singleframe.views_slideshow.inc	14 Dec 2010 14:03:03 -0000
@@ -54,6 +54,7 @@ function views_slideshow_singleframe_vie
 }
 
 function views_slideshow_singleframe_views_slideshow_options_form(&$form, &$form_state, &$view) {
+  ctools_include('dependent');
   $form['views_slideshow_singleframe']['timeout'] = array(
     '#type' => 'textfield',
     '#title' => t('Timer delay'),
@@ -123,7 +124,7 @@ function views_slideshow_singleframe_vie
     ),
     '#default_value' => $view->options['views_slideshow_singleframe']['pause_when_hidden_type'],
     '#description' => t('Choose how to calculate how much of the slide has to be shown. Entire Slide: All the slide has to be shown. Vertical: Set amount of height that has to be shown. Horizontal: Set amount of width that has to be shown. Area: Set total area that has to be shown.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-singleframe-pause-when-hidden' => array(1)),
   );
   $form['views_slideshow_singleframe']['amount_allowed_visible'] = array(
@@ -132,7 +133,7 @@ function views_slideshow_singleframe_vie
     '#default_value' => $view->options['views_slideshow_singleframe']['amount_allowed_visible'],
     '#description' => t("The amount of the slide that needs to be shown to have it rotate. You can set the value in percentage (ex: 50%) or in pixels (ex: 250). The slidehsow will not rotate until it's height/width/total area, depending on the calculation method you have chosen above, is less than the value you have entered in this field."),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency_count' => 2,
     '#dependency' => array(
       'edit-style-options-views-slideshow-singleframe-pause-when-hidden' => array(1),
@@ -155,7 +156,7 @@ function views_slideshow_singleframe_vie
     '#default_value' => $view->options['views_slideshow_singleframe']['remember_slide_days'],
     '#description' => t('The number of days to have the site remember the last slide. Default is 1'),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-singleframe-remember-slide' => array(1)),
   );
   $form['views_slideshow_singleframe']['controls'] = array(
@@ -178,7 +179,7 @@ function views_slideshow_singleframe_vie
     '#options' => array('Numbered' => t('Numbered'), 'Thumbnails' => t('Thumbnails')),
     '#default_value' => $view->options['views_slideshow_singleframe']['pager_type'],
     '#description' => t('What the pager should look like.  Thumbnails grabs the first image in each slideshow item.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-singleframe-pager' => array(1, 2)),
   );
   $form['views_slideshow_singleframe']['pager_hover'] = array(
@@ -187,7 +188,7 @@ function views_slideshow_singleframe_vie
     '#options' => array(1 => t('Yes'), 2 => t('No')),
     '#default_value' => $view->options['views_slideshow_singleframe']['pager_hover'],
     '#description' => t('Should the slide be activated and paused when hovering over a pager item.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-singleframe-pager' => array(1, 2)),
   );
   $form['views_slideshow_singleframe']['pager_click_to_page'] = array(
@@ -195,7 +196,7 @@ function views_slideshow_singleframe_vie
     '#title' => t('Make Pager Linked to Slide Link'),
     '#default_value' => $view->options['views_slideshow_singleframe']['pager_click_to_page'],
     '#description' => t('Should the pager use the main frame link so when it is clicked it goes to the same url that the main frame goes to when clicked.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-singleframe-pager' => array(1, 2)),
   );
   $form['views_slideshow_singleframe']['image_count'] = array(
Index: contrib/views_slideshow_thumbnailhover/views_slideshow_thumbnailhover.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_thumbnailhover/Attic/views_slideshow_thumbnailhover.info,v
retrieving revision 1.1.2.1.4.1
diff -u -p -r1.1.2.1.4.1 views_slideshow_thumbnailhover.info
--- contrib/views_slideshow_thumbnailhover/views_slideshow_thumbnailhover.info	24 Jul 2010 19:01:26 -0000	1.1.2.1.4.1
+++ contrib/views_slideshow_thumbnailhover/views_slideshow_thumbnailhover.info	14 Dec 2010 14:03:03 -0000
@@ -3,4 +3,8 @@ name = Views Slideshow: ThumbnailHover (
 description = Adds a Thumbnail Hover slideshow mode to Views Slideshows.
 dependencies[] = views_slideshow
 package = Views
-core = 6.x
+core = 7.x
+files[] = views_slideshow_thumnailhover.module
+files[] = views_slideshow_thumnailhover.theme.inc
+files[] = views_slideshow_thumnailhover.views.inc
+files[] = views_slideshow_thumbnailhover.views_slideshow.inc
Index: contrib/views_slideshow_thumbnailhover/views_slideshow_thumbnailhover.views_slideshow.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/contrib/views_slideshow_thumbnailhover/Attic/views_slideshow_thumbnailhover.views_slideshow.inc,v
retrieving revision 1.1.2.1.2.19.2.12
diff -u -p -r1.1.2.1.2.19.2.12 views_slideshow_thumbnailhover.views_slideshow.inc
--- contrib/views_slideshow_thumbnailhover/views_slideshow_thumbnailhover.views_slideshow.inc	29 Sep 2010 03:07:49 -0000	1.1.2.1.2.19.2.12
+++ contrib/views_slideshow_thumbnailhover/views_slideshow_thumbnailhover.views_slideshow.inc	14 Dec 2010 14:03:03 -0000
@@ -55,6 +55,7 @@ function views_slideshow_thumbnailhover_
 }
 
 function views_slideshow_thumbnailhover_views_slideshow_options_form(&$form, &$form_state, &$view) {
+  ctools_include('dependent');
   if (module_exists('hoverintent')) {
     $options = array('hover' => t('Hover'));
     $options['hoverIntent'] = t('HoverIntent');
@@ -178,7 +179,7 @@ function views_slideshow_thumbnailhover_
     ),
     '#default_value' => $view->options['views_slideshow_thumbnailhover']['pause_when_hidden_type'],
     '#description' => t('Choose how to calculate how much of the slide has to be shown. Entire Slide: All the slide has to be shown. Vertical: Set amount of height that has to be shown. Horizontal: Set amount of width that has to be shown. Area: Set total area that has to be shown.'),
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-thumbnailhover-pause-when-hidden' => array(1)),
   );
   $form['views_slideshow_thumbnailhover']['amount_allowed_visible'] = array(
@@ -187,7 +188,7 @@ function views_slideshow_thumbnailhover_
     '#default_value' => $view->options['views_slideshow_thumbnailhover']['amount_allowed_visible'],
     '#description' => t("The amount of the slide that needs to be shown to have it rotate. You can set the value in percentage (ex: 50%) or in pixels (ex: 250). The slidehsow will not rotate until it's height/width/total area, depending on the calculation method you have chosen above, is less than the value you have entered in this field."),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency_count' => 2,
     '#dependency' => array(
       'edit-style-options-views-slideshow-thumbnailhover-pause-when-hidden' => array(1),
@@ -210,7 +211,7 @@ function views_slideshow_thumbnailhover_
     '#default_value' => $view->options['views_slideshow_thumbnailhover']['remember_slide_days'],
     '#description' => t('The number of days to have the site remember the last slide. Default is 1'),
     '#size' => 4,
-    '#process' => array('views_process_dependency'),
+    '#process' => array('ctools_dependent_process'),
     '#dependency' => array('edit-style-options-views-slideshow-thumbnailhover-remember-slide' => array(1)),
   );
   $options = array('mouseover' => t('Hover'), 'click' => t('Click'));
