diff options
author | Silvio <s1lv10@uol.com.br> | 2010-03-23 11:05:29 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-03-23 11:05:29 -0300 |
commit | abbd5da4f71ca17b9adaa94ad32d796e6b77369b (patch) | |
tree | c1eda2b02b3bf0e592e920d3602f6ebc7309115d | |
parent | d0d921f2d8fbdca9d2307d89b349e9251f829fc0 (diff) | |
download | mass_image_import-abbd5da4f71ca17b9adaa94ad32d796e6b77369b.tar.gz mass_image_import-abbd5da4f71ca17b9adaa94ad32d796e6b77369b.tar.bz2 |
Cosmetics
-rw-r--r-- | .mass_image_import.module.swp | bin | 20480 -> 20480 bytes | |||
-rw-r--r-- | mass_image_import.module | 11 |
2 files changed, 9 insertions, 2 deletions
diff --git a/.mass_image_import.module.swp b/.mass_image_import.module.swp Binary files differindex b0901eb..bb8029b 100644 --- a/.mass_image_import.module.swp +++ b/.mass_image_import.module.swp 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); } } |