function word_link_exchange_import_batch_finish in Word Link 7.2
Same name and namespace in other branches
- 8 modules/word_link_exchange/word_link_exchange.module \word_link_exchange_import_batch_finish()
- 7 modules/word_link_exchange/word_link_exchange.module \word_link_exchange_import_batch_finish()
Batch import finish.
1 string reference to 'word_link_exchange_import_batch_finish'
- word_link_exchange_import_form_submit in modules/
word_link_exchange/ word_link_exchange.module - Submit for word_link_exchange_import_form.
File
- modules/
word_link_exchange/ word_link_exchange.module, line 413 - Code for the Word link exchange module.
Code
function word_link_exchange_import_batch_finish($success, $results, $operations) {
if ($success) {
word_link_clear_filter_cache();
drupal_set_message(format_plural($results['created'], 'One word imported.', '@count words imported.'));
if (isset($results['updated'])) {
drupal_set_message(format_plural($results['updated'], 'One word updated.', '@count words updated.'));
}
drupal_set_message(format_plural($results['processed'], 'One item processed.', '@count items processed.'));
}
else {
drupal_set_message(t('Finished with an error.'), 'error');
}
}