--- upload_image.module +++ upload_image.module @@ -92,7 +92,7 @@ $node->body .= theme('table', $header, $rows, array('id' => 'upload-image-attachments')); } if (count($thumbnails)) { - $node->body .= theme('upload_images', $thumbnails); + $node->body = theme('upload_images_body', $node->body, $thumbnails); } } break; @@ -187,4 +187,8 @@ $output .= theme('item_list', $list); $output .= ''; return $output; +} + +function theme_upload_images_body($body, $thumbnails) { + return $body . theme('upload_images', $thumbnails); }