aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.mass_image_import.module.swpbin20480 -> 20480 bytes
-rw-r--r--mass_image_import.module11
2 files changed, 9 insertions, 2 deletions
diff --git a/.mass_image_import.module.swp b/.mass_image_import.module.swp
index b0901eb..bb8029b 100644
--- a/.mass_image_import.module.swp
+++ b/.mass_image_import.module.swp
Binary files differ
diff --git a/mass_image_import.module b/mass_image_import.module
index 1de68a6..411217b 100644
--- a/mass_image_import.module
+++ b/mass_image_import.module
@@ -85,8 +85,15 @@ function mass_image_import_batch(&$context) {
break;
}
- $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
- mass_image_import_file($context['sandbox']['images'][$context['sandbox']['progress']]);
+ $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
+ $image = $context['sandbox']['images'][$context['sandbox']['progress']];
+ $context['results'][] = $image->filename;
+ $context['message'] = t('Importing @file...',
+ array(
+ '@file' => $image->filename,
+ ));
+
+ mass_image_import_file($image);
}
}