You are here

function _bulkdelete_batch_finished in Bulk Delete 7

Batch finish function.

This function is called by the batch 'finished' parameter. The cache must not be cleared as the last batch operation, but after the batch is finished.

Parameters

bool $success: Indicates if the batch was successfully finished.

array $results: The value of the results item from the context variable used in the batch processing.

array $operations: If the success parameter is false then this is a list of the operations that haven't completed yet.

1 string reference to '_bulkdelete_batch_finished'
bulkdelete_form_submit in ./bulkdelete.admin.inc
Implements hook_form_submit().

File

./bulkdelete.module, line 45
Main file of the bulkdelete module.

Code

function _bulkdelete_batch_finished($success, array $results, array $operations) {
  cache_clear_all();
  $message = $success ? t('Bulkdelete performed successfully.') : t('Bulkdelete has not been finished successfully.');
  watchdog('bulkdelete', $message);
  drupal_set_message($message);
}