/[drupal]/contributions/modules/attached_node/attached_node.module
ViewVC logotype

Diff of /contributions/modules/attached_node/attached_node.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6.2.1, Sun Oct 24 01:50:29 2004 UTC revision 1.6.2.2, Sun Oct 24 20:30:19 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  //$Id: attached_node.module,v 1.7 2004/10/23 23:46:46 javanaut Exp $  //$Id: attached_node.module,v 1.1 2004/10/13 12:48:34 javanaut Exp $
3  /*  /*
4  This file is attached_node module - It allows users to  This file is attached_node module - It allows users to
5  attach a node to another node.  attach a node to another node.
# Line 139  function attached_node_filter_process($t Line 139  function attached_node_filter_process($t
139   */   */
140  function theme_attached_node_thumbnail(&$node) {  function theme_attached_node_thumbnail(&$node) {
141    
142      $main = true;
143    
144    if($node->type == "image") {    if($node->type == "image") {
145    
146      // offer theme developers and module developers to override this      // offer theme developers and module developers to override this
# Line 154  function theme_attached_node_thumbnail(& Line 156  function theme_attached_node_thumbnail(&
156          if(isset($node->res)) {          if(isset($node->res)) {
157            $_GET['res'] = $node->res;            $_GET['res'] = $node->res;
158          }          }
159          node_image_content($node, 0, 0);          $main = false;
   
         if(isset($res_tmp)) {  
           $_GET['res'] = $res_tmp;  
         }  
   
160        }        }
161      }      }
162    }    }
163    return theme("attached_node_format",node_view($node, true));  
164      $output = theme("attached_node_format",node_view($node, $main));
165    
166      // image module cleanup
167      if(isset($res_tmp)) {
168        $_GET['res'] = $res_tmp;
169      }
170    
171      return $output;
172  }  }
173    
174  /**  /**

Legend:
Removed from v.1.6.2.1  
changed lines
  Added in v.1.6.2.2

  ViewVC Help
Powered by ViewVC 1.1.2