### Eclipse Workspace Patch 1.0
#P link_node
Index: link_node.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/link_node/link_node.module,v
retrieving revision 1.2
diff -u -r1.2 link_node.module
--- link_node.module	8 Sep 2008 17:45:39 -0000	1.2
+++ link_node.module	14 Oct 2010 08:20:32 -0000
@@ -23,6 +23,20 @@
 */
 
 /**
+ * Implements hook_theme().
+ */
+function link_node_theme($existing, $type, $theme, $path) {
+  return array(
+    'link_node_format' => array(
+      'arguments' => array('content' => ''),
+    ),
+    'link_node_thumbnail' => array(
+      'arguments' => array('node' => NULL),
+    ),
+  );
+}
+
+/**
  * Hook which handles filtering.
  */
 function link_node_filter($op, $delta = 0, $format = -1, $text = '') {
@@ -145,11 +159,11 @@
 
           //$matches_html[$key] = "thumbnail of node $node->nid goes here";
           //$matches_html[$key] = theme("attached_node_thumbnail", $node);
-          $matches_html[$key] = theme_link_node_thumbnail($node);//."k:".$key."v:".var_dump($match);
+          $matches_html[$key] = theme('link_node_thumbnail', $node); //."k:".$key."v:".var_dump($match);
         }
         else {
           if($show_error_msgs) {
-            $matches_html[$key] = theme("link_node_format", t("Nonexistent node nid: ") . "$nid.");
+            $matches_html[$key] = theme('link_node_format', t("Nonexistent node nid: ") . "$nid.");
           }
           else {
             $matches_html[$key] = "";
@@ -175,17 +189,13 @@
  * Generates a thumbnail view of a node.
  */
 function theme_link_node_thumbnail(&$node) {
-
-  $main = true;
-  
   if($node->type == "image") {
-    
     // offer theme developers and module developers to override this
     if(function_exists("image_link_node_thumbnail")) {
       return image_link_node_thumbnail($node);
     }
   }
-  
+
   $output = l($node->title, "node/" . $node->nid, array('class' => 'link-node'));
 
   return $output;
