/[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.7, Sat Oct 23 23:46:46 2004 UTC revision 1.8, Sun Oct 24 20:33:16 2004 UTC
# 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.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.2