You are here

function _cacheflush_ui_mass_update_batch_finished in CacheFlush 7.3

Reports the status of batch operation for cacheflush_ui_mass_update().

Parameters

bool $success: A boolean indicating whether the batch mass update operation successfully concluded.

int $results: The number of presets updated via the batch mode process.

array $operations: An array of function calls (not used in this function).

1 string reference to '_cacheflush_ui_mass_update_batch_finished'
cacheflush_ui_mass_update in modules/cacheflush_ui/includes/cacheflush_ui.class.inc
Make mass update of presets.

File

modules/cacheflush_ui/includes/cacheflush_ui.class.inc, line 402
Contains the CacheflushUIController class.

Code

function _cacheflush_ui_mass_update_batch_finished($success, $results, array $operations) {
  if ($success) {
    drupal_set_message(t('The update has been performed.'));
  }
  else {
    drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
    $message = format_plural(count($results), '1 item successfully processed:', '@count items successfully processed:');
    $message .= theme('item_list', array(
      'items' => $results,
    ));
    drupal_set_message($message);
  }
}