aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_image
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/video_image')
-rw-r--r--plugins/video_image/video_image.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/video_image/video_image.module b/plugins/video_image/video_image.module
index b2ca7f6..a85455d 100644
--- a/plugins/video_image/video_image.module
+++ b/plugins/video_image/video_image.module
@@ -99,9 +99,6 @@ function video_image_nodeapi(&$node, $op, $teaser) {
$output['iid'] = $node->serial_data['iid'];
return $output;
case 'submit':
- $node->serial_data['iid'] = $node->iid;
- break;
- case 'prepare':
if (variable_get('video_image_auto_thumbnail_debug', false) && variable_get('video_image_auto_thumbnail', false)) {
drupal_set_message(t('video_image_nodeapi: prepare: ready to thumbnail image'));
}
@@ -134,6 +131,11 @@ function video_image_nodeapi(&$node, $op, $teaser) {
else if (isset($_SESSION['video_upload_file']->iid)) {
$node->iid = $_SESSION['video_upload_file']->iid;
}
+
+ $node->serial_data['iid'] = $node->iid;
+ break;
+ case 'prepare':
+ ;
break;
case 'view':