? tablemanager-599722.patch
Index: tablemanager.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tablemanager/tablemanager.module,v
retrieving revision 1.88.2.9
diff -u -p -r1.88.2.9 tablemanager.module
--- tablemanager.module	22 Aug 2009 19:13:08 -0000	1.88.2.9
+++ tablemanager.module	9 Oct 2009 06:48:02 -0000
@@ -536,7 +536,7 @@ function tablemanager_display($tid, $lis
               break;
             }
           }
-          $temp[$col + 1] = array('data' => tablemanager_process_cell($col, $a, $header[$col]));
+          $temp[$col + 1] = tablemanager_process_cell($col, $a, $header[$col]);
         }
         else {
           $temp[$col + 1] = array('data' => '');
@@ -725,11 +725,12 @@ function tablemanager_nodeadd_form() {
  */
 function tablemanager_process_cell($col, $data, $args = array()) {
   $attributes = array();
+  $temp = array();
   $path = drupal_get_path('module', 'tablemanager');
   switch ($args['type']) {
     default: // Text + Numeric
       tablemanager_attributes($data, $attributes);
-      $temp = $data;
+      $temp['data'] = $data;
       if ($attributes) {
         foreach ($attributes as $attribute) {
           foreach ($attribute as $key => $value) {
@@ -740,25 +741,25 @@ function tablemanager_process_cell($col,
       break;
     case "3": // Date
       $exp = explode('/', $data);
-      $temp = "<!-- $data -->". date(variable_get('tablemanager_date_format', 'jS F Y'), mktime(0, 0, 0, $exp['1'], $exp['2'], $exp['0']));
+      $temp['data'] = "<!-- $data -->". date(variable_get('tablemanager_date_format', 'jS F Y'), mktime(0, 0, 0, $exp['1'], $exp['2'], $exp['0']));
       break;
     case "4": // URL
       // To do - split this nicely into display name and link rather than one entry for both
-      $temp = l($data, $data);
+      $temp['data'] = l($data, $data);
       break;
     case "5": // Email
       // To do - split this nicely into display name and email rather than one entry for both
-      $temp = l($data, 'mailto:'. $data);
+      $temp['data'] = l($data, 'mailto:'. $data);
       break;
     case "6": // Bar Chart
       $temp = theme_image($path .'/misc/'. variable_get('tablemanager_bc_colour', 'red') .'-bar.png', $data, '', array('style' => 'vertical-align: middle; margin: 5px 5px 5px 0;', 'width' => $data, 'height' => '16'), FALSE);
       if (variable_get('tablemanager_bc_end', 1)) {
-        $temp = $temp . $data;
+        $temp['data'] = $temp . $data;
       }
       break;
     case "7": // Selection
       $choices = explode("\n", $args['choices']);
-      $temp = $choices[$data];
+      $temp['data'] = $choices[$data];
       break;
     case "8": // Node Reference
       break;
