aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-03-23 11:05:29 -0300
committerSilvio <s1lv10@uol.com.br>2010-03-23 11:05:29 -0300
commitabbd5da4f71ca17b9adaa94ad32d796e6b77369b (patch)
treec1eda2b02b3bf0e592e920d3602f6ebc7309115d
parentd0d921f2d8fbdca9d2307d89b349e9251f829fc0 (diff)
downloadmass_image_import-abbd5da4f71ca17b9adaa94ad32d796e6b77369b.tar.gz
mass_image_import-abbd5da4f71ca17b9adaa94ad32d796e6b77369b.tar.bz2
Cosmetics
-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);
}
}