? module_disable.patch
? patterns/core_modules.xml
? patterns/mlab_all_modules.yaml
? patterns/mlab_core_modules.yaml
? patterns/mlab_fail_safe.xml
? patterns/mlab_production.xml
? patterns/mlab_set_theme.xml
? patterns/simple_disable.xml
? patterns/simple_enable.xml
Index: patterns.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/patterns/patterns.module,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 patterns.module
--- patterns.module	26 Nov 2008 05:36:41 -0000	1.1.2.2
+++ patterns.module	29 Apr 2009 05:56:42 -0000
@@ -920,7 +920,7 @@
   }
   
   // Pre validate tags with their appropriate components
-  foreach($actions as $key => $data) {
+  foreach($actions as $key => &$data) {
     if (!array_key_exists($data['tag'], $tag_modules)) {
       $errors[$data['tag']][] = t('Invalid Pattern: <%tag> is not a valid tag', array('%tag' => $data['tag']));
     }
@@ -1030,7 +1030,7 @@
       $identifiers[$key+1] = $id;
     }
   }
-  
+   
   if (empty($errors)) {
     if ($reverse) {
       if ($modules) {
Index: components/system.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/patterns/components/system.inc,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 system.inc
--- components/system.inc	26 Nov 2008 05:36:40 -0000	1.1.2.2
+++ components/system.inc	29 Apr 2009 05:56:43 -0000
@@ -125,6 +125,15 @@
         }
         
         $modules = module_list();
+        
+        // flatten the modules array if it exists (xml will do this to you)
+        if (isset($data['module'])) {
+        	for($i=0; $item=$data['module'][$i]; $i++) {
+        		$data[$i] = $item;
+        		unset($data['module'][$i]);
+        	}
+        	unset($data['module']);
+        }
         for($i=0;$item=$data[$i];$i++) {
           $module = $item['value'];
           
@@ -212,7 +221,7 @@
             $data['status'] += array($module => $module);
           }
           else {
-            unset($data['status'][$module]);
+            $data['status'][$module] = false;
           }
           
           unset($data[$i]);
