type, 0) || count(variable_get('clipper_'. $node->type .'_relatable', array())) >= 1) { switch ($op) { case 'view': $node->body .= theme('clipper_image_view', $node); break; } } } /** * Theme: displays the parent/child relationships of this node. The display * will only occur if "Relations display" is enabled on this content type. */ function theme_clipper_image_view($node) { if ($node->nid) { $output = NULL; if ($node->clipper->parents) { foreach ($node->clipper->parents as $parent) { $parent = node_load($parent); $images[] = $parent; } } if ($node->clipper->children) { foreach ($node->clipper->children as $child) { $child = node_load($child); $images[] = $child; } } if ($images) { drupal_set_html_head(''); $thumbnails = array(); foreach ($images as $image) { image_load(&$image); $thumbnails[] = l(module_invoke('image', 'display', $image, 'thumbnail'), "node/$image->nid", array(), NULL, NULL, FALSE, TRUE); } if (count($thumbnails)) { return theme('clipper_image_images', $thumbnails); } } } } function theme_clipper_image_images($list) { $output = '