? table-colspan.patch
Index: table.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/table/Attic/table.module,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 table.module
--- table.module	30 Mar 2010 08:40:43 -0000	1.1.2.3
+++ table.module	10 Dec 2010 12:20:06 -0000
@@ -109,6 +109,17 @@ function theme_table_table($variables) {
     $col_order = array_merge($col_order, explode(',', $key));
   }
 
+  // Support colspan.
+  if (is_numeric($col_order[0])) {
+    $colspan = 0;
+    foreach ($col_order as $key => $value) {
+      if (!empty($variables['table']['#header'][$value]['colspan'])) {
+        $colspan += $variables['table']['#header'][$value]['colspan'] - 1;
+      }
+    }
+    $col_order = drupal_map_assoc(range(0, count($col_order) -1 + $colspan));
+  }
+
   // All children of the table element are table rows. This is ensured in
   // table_process_table_root(). These rows are added in addition to the rows
   // already specified in #rows.
