You are here

function word_link_exchange_import_batch_finish in Word Link 7

Same name and namespace in other branches
  1. 8 modules/word_link_exchange/word_link_exchange.module \word_link_exchange_import_batch_finish()
  2. 7.2 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 382
Code for the Word link exchange module.

Code

function word_link_exchange_import_batch_finish($success, $results, $operations) {
  if ($success) {
    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');
  }
}