? taxonomy_image-views2-integration-267427-8.patch
Index: taxonomy_image.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/taxonomy_image/taxonomy_image.module,v
retrieving revision 1.12.4.13.2.16
diff -u -p -r1.12.4.13.2.16 taxonomy_image.module
--- taxonomy_image.module	8 Jun 2008 16:19:48 -0000	1.12.4.13.2.16
+++ taxonomy_image.module	11 Jun 2008 04:45:21 -0000
@@ -384,6 +384,32 @@ function taxonomy_image_user($type, $edi
   }
 }
 
+/**
+ * Implementation of hook_views_data().
+ */
+function taxonomy_image_views_data() {
+  $data = array();
+
+  $data['term_image']['table']['group'] = t('Taxonomy');
+  $data['term_image']['table']['join'] = array(
+    'term_data' => array(
+      // Links directly to term_data via tid.
+      'left_field' => 'tid',
+      'field' => 'tid',
+    ),
+  );
+  $data['term_image']['path'] = array(
+    'title' => t('Term image'),
+    'help' => t('The image associated with a given term.'),
+    'field' => array(
+      'handler' => 'views_handler_image_path',
+    ),
+  );
+
+  return $data;
+}
+
+
 function taxonomy_image_views_tables() {
 //  $tables['term_node'] = array(
 //    'name' => 'term_node',
