You are here

function bpn_flickr_batch_finished in Bulk File Nodes 7

Batch finished callback used by bpn_flickr_form_step_2_submit().

1 string reference to 'bpn_flickr_batch_finished'
bpn_flickr_form_step_2_submit in modules/bpn_flickr/bpn_flickr.module
Form submission handler for bpn_flickr_form_step_2().

File

modules/bpn_flickr/bpn_flickr.module, line 357
Hooks and functions for the bpn_flickr module.

Code

function bpn_flickr_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('@count Photos imported.', array(
      '@count' => count($results),
    )));
  }
  else {
    $error_operation = reset($operations);
    drupal_set_message(t('An error occurred while processing @operation with arguments : @args', array(
      '@operation' => $error_operation[0],
      '@args' => print_r($error_operation[0], TRUE),
    )));
  }
  $_SESSION['saved_files'] = $results;
}