You are here

function bynder_batch_reload_derivatives_finished in Bynder 7

Batch finished callback.

1 string reference to 'bynder_batch_reload_derivatives_finished'
bynder_batch_reload_derivatives in includes/bynder.admin.inc
Batch callback to fetch derivative information.

File

includes/bynder.admin.inc, line 248

Code

function bynder_batch_reload_derivatives_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('Finished setting up image styles!');
  }
  else {
    $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, 'error');
  }
}