You are here

function _book_copy_copy_finished in Book Copy 7.2

Book delete batch 'finished' callback.

1 string reference to '_book_copy_copy_finished'
book_copy_process_copy in ./book_copy.module
Execute a batch process.

File

./book_copy.module, line 336
Book copy, copy book outlines

Code

function _book_copy_copy_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The outline has been copied successfully!'));
  }
  else {
    drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
    $message = format_plural(count($results), '1 book item successfully copied.', '@count book items successfully copied.');
    $message .= theme('item_list', $results);
    drupal_set_message($message);
  }
}