Index: includes/workflow.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/workflow/includes/workflow.views.inc,v
retrieving revision 1.1.2.4
diff -u -r1.1.2.4 workflow.views.inc
--- includes/workflow.views.inc	27 Oct 2010 02:35:17 -0000	1.1.2.4
+++ includes/workflow.views.inc	12 Jan 2011 03:50:13 -0000
@@ -205,6 +205,32 @@
     ),
   );
 
+  $data['workflow_node_current']['table']['group']  = t('Workflow');
+  // Explain how this table joins to others.
+  $data['workflow_node_current']['table']['join'] = array(
+    'node' => array(
+      'table' => 'workflow_node_history',
+      'field' => 'nid',
+      'left_table' => 'node',
+      'left_field' => 'nid',
+      'extra' => 'workflow_node.stamp = workflow_node_current.stamp AND workflow_node.nid = workflow_node_current.nid',
+    ),
+  );
+
+  // comment
+  $data['workflow_node_current']['comment'] = array(
+    'title' => t('Current comment'), // Appears in views UI.
+    'help' => t('The comment describing why the node was moved from the last state to the current state.'),
+    'field' => array(
+      'handler' => 'views_handler_field_xss',
+      'click sortable' => TRUE,
+     ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_string',
+      'numeric' => TRUE,
+    ),
+  );
+
   return $data;
 }
 
