Index: skinr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/skinr/skinr.module,v
retrieving revision 1.18
diff -u -p -r1.18 skinr.module
--- skinr.module	5 Jan 2010 06:46:37 -0000	1.18
+++ skinr.module	19 Jan 2010 14:05:17 -0000
@@ -215,6 +215,9 @@ function skinr_form_alter(&$form, $form_
             if (!is_array($skin['features']) || (!in_array('*', $skin['features']) && !in_array($preprocess_hook, $skin['features']))) {
               continue;
             }
+            if ($preprocess_hook == 'views_view' && $form_state['section'] == 'style_options' && !in_array('*', $skin['views_restrictions']) && !in_array($form_state['help_topic'], $skin['views_restrictions'])) {
+              continue;
+            }
 
             // Create widget.
             switch ($skin['type']) {
@@ -406,6 +409,12 @@ function skinr_preprocess(&$variables, $
         }
 
         foreach ($style as $skin => $classes) {
+          // Check if this skin applies.
+          if (isset($vars['view']) && $vars['view']->style_plugin->definition['module'] == 'views' && !in_array('*', $info[$current_theme]['skins'][$skin]['views_restrictions']) && !in_array($vars['view']->style_plugin->definition['help topic'], $info[$current_theme]['skins'][$skin]['views_restrictions'])) {
+            unset($style[$skin]);
+            continue;
+          }
+
           // Add custom CSS files.
           if (!empty($info[$current_theme]['skins'][$skin]['stylesheets'])) {
             foreach ($info[$current_theme]['skins'][$skin]['stylesheets'] as $media => $stylesheets) {
@@ -684,6 +693,7 @@ function skinr_process_info_files() {
             'options' => isset($skin['options']) ? $skin['options'] : array(),
             'stylesheets' => isset($skin['stylesheets']) ? $skin['stylesheets'] : array(),
             'scripts' => isset($skin['scripts']) ? $skin['scripts'] : array(),
+            'views_restrictions' => isset($skin['views_restrictions']) ? $skin['views_restrictions'] : array('*'),
           );
 
           $cache[$theme_idx]['skins'][$id] = $processed_skin;
