You are here

function term_merge_batch_finished in Term Merge 7

Batch 'finished' callback.

Process results of Term Merge batch.

2 string references to 'term_merge_batch_finished'
term_merge in ./term_merge.module
Merge terms one into another using batch API.
term_merge_duplicates_form_submit in ./term_merge.pages.inc
Submit handler for 'term_merge_duplicates_form'.

File

./term_merge.batch.inc, line 94
Batch process callbacks for Term Merge module.

Code

function term_merge_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The terms have been successfully merged.'));
  }
  else {

    // An error happened. We have to notify the user.
    drupal_set_message(t('An error occurred. We are sorry, please, report this error to the maintainers of Term Merge module.'), 'error');
  }
}