You are here

function advagg_admin_rebuild_bundles_done in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 includes/admin.inc \advagg_admin_rebuild_bundles_done()
1 string reference to 'advagg_admin_rebuild_bundles_done'
advagg_admin_batch_rebuild in ./advagg.admin.inc
Set up batch for first and last name loading.

File

./advagg.admin.inc, line 658
Admin page callbacks for the advanced CSS/JS aggregation module.

Code

function advagg_admin_rebuild_bundles_done($success, $results, $operations) {
  if ($success) {

    // Here we do something meaningful with the results.
    $message = count($results) . ' files generated.';
    $message .= theme('item_list', $results);
  }
  else {

    // An error occurred.
    // $operations contains the operations that remained unprocessed.
    $error_operation = reset($operations);
    $message = t('An error occurred while processing %error_operation with arguments: @arguments', array(
      '%error_operation' => $error_operation[0],
      '@arguments' => print_r($error_operation[1], TRUE),
    ));
  }
  drupal_set_message($message);
}