From abbd5da4f71ca17b9adaa94ad32d796e6b77369b Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 23 Mar 2010 11:05:29 -0300 Subject: Cosmetics --- mass_image_import.module | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mass_image_import.module') 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); } } -- cgit v1.2.3