function bulk_photo_nodes_batch_finished in Bulk File Nodes 7
Batch 'finished' callback used by bulk_photo_nodes_add_form_submit().
1 string reference to 'bulk_photo_nodes_batch_finished'
- bulk_photo_nodes_add_form_submit in ./
bulk_photo_nodes.module - Form submission handler for bulk_photo_nodes_add_form().
File
- ./
bulk_photo_nodes.module, line 566 - hooks and helper functions for bulk photo node.
Code
function bulk_photo_nodes_batch_finished($success, $results, $operations) {
if ($success) {
drupal_set_message(t('@count Photos saved.', array(
'@count' => count($results),
)));
// Delete old image style generated images.
$image_style = image_style_load('bulk_photo_nodes');
image_style_flush($image_style);
}
else {
// An error occurred.
// $operations contains the operations that remained unprocessed.
$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),
)));
}
}