Index: link_node.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/link_node/link_node.module,v
retrieving revision 1.2.2.1
diff -r1.2.2.1 link_node.module
93c93
< 	if (module_exists('i18n') && module_exists('translation')) {
---
>         if (module_exists('i18n') && module_exists('translation')) {
97,98c97,98
<         $node = node_load(array("nid"=>$nid));
<         if($node) {
---
>         $node = node_load(array("nid" => $nid));
>         if ($node) {
100c100
<           if(!node_access("view", $node)) {
---
>           if (!node_access("view", $node)) {
105c105
< 	  $meta_tag_params_regexp = '/,\s*([\w_-]+)\s*=\s*"([^"]+)"\s*/';
---
>           $meta_tag_params_regexp = '/,\s*([\w_-]+)\s*=\s*"([^"]+)"\s*/';
114c114
<             for($i=0; $i<count($parm_match[1]); $i++) {  
---
>             for ($i=0; $i<count($parm_match[1]); $i++) {  
120c120
<               if(in_array($parm, $allowed_vars)) {
---
>               if (in_array($parm, $allowed_vars)) {
124,125c124,125
<                 if($show_error_msgs) {
<                   drupal_set_message("ignoring param '$parm' for ".$node->type." as it is not valid.  Possible values are '<code>". variable_get("link_node_allowed_vars_$node->type", "") ."</code>'.");
---
>                 if ($show_error_msgs) {
>                   drupal_set_message("ignoring param '$parm' for ". $node->type ." as it is not valid.  Possible values are '<code>". variable_get("link_node_allowed_vars_$node->type", "") ."</code>'.");
131c131
<           $matches_html[$key] = theme_link_node_thumbnail($node);//."k:".$key."v:".var_dump($match);
---
>           $matches_html[$key] = theme("link_node_thumbnail", $node);
134,135c134,135
<           if($show_error_msgs) {
<             $matches_html[$key] = theme("link_node_format", t("Nonexistent node nid: ") . "$nid.");
---
>           if ($show_error_msgs) {
>             $matches_html[$key] = theme("link_node_format", t("Nonexistent node nid: ") ."$nid.");
164c164
<   if($node->type == "image") {
---
>   if ($node->type == "image") {
167c167
<     if(function_exists("image_link_node_thumbnail")) {
---
>     if (function_exists("image_link_node_thumbnail")) {
197c197
< function link_node_help($section = "admin/help#link_node") {
---
> function link_node_help($path, $arg) {
200c200
<   switch ($section) {
---
>   switch ($path) {
254a255,268
> 
> /**
>  * Implementation of hook_theme().
>  */
> function link_node_theme() {
>   return array(
>     'link_node_thumbnail' => array(
>       'arguments' => array('node' => NULL),
>     ),
>     'link_node_format' => array(
>       'arguments' => array('content' => NULL),
>     ),
>   );
> }
\ No newline at end of file
