| 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. |
| 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 |
| 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 |
/** |
/** |