Index: views/image_handler_field_image_node_image.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/views/image_handler_field_image_node_image.inc,v
retrieving revision 1.3
diff -u -p -r1.3 image_handler_field_image_node_image.inc
--- views/image_handler_field_image_node_image.inc	26 Aug 2009 14:42:04 -0000	1.3
+++ views/image_handler_field_image_node_image.inc	7 Sep 2009 19:57:16 -0000
@@ -94,6 +94,20 @@ class image_handler_field_image_node_ima
   }
 
   /**
+   * Render whatever the data is as a link to the node.
+   *
+   * Data should be made XSS safe prior to calling this function.
+   */
+  function render_link($data, $values) {
+    if (!empty($this->options['link_to_node']) && $data !== NULL && $data !== '') {
+      $this->options['alter']['make_link'] = TRUE;
+      $this->options['alter']['path'] = "node/" . $values->{$this->aliases['nid']};
+      dsm($this);
+    }
+    return $data;
+  }
+
+  /**
    * Return image html, using image_load() and image_display().
    *
    * We rely on Image module to handle getting the data because although we can
