function cer_batch_update_existing_finished in Corresponding Entity References 7
Same name and namespace in other branches
- 7.3 cer.module \cer_batch_update_existing_finished()
- 7.2 cer.module \cer_batch_update_existing_finished()
Batch 'finished' callback.
See also
1 string reference to 'cer_batch_update_existing_finished'
- cer_batch_index_remaining in ./
cer.module - Submit a batch job to index the remaining, unindexed content.
File
- ./
cer.module, line 273 - Module file providing the "corresponding entity reference" module main functions.
Code
function cer_batch_update_existing_finished($success, $results, $operations) {
if ($success) {
$type = 'status';
$message = format_plural($results['count'], '1 entity processed successfully.', '@count entitys processed successfully.');
}
else {
$type = 'error';
// An error occurred.
// $operations contains the operations that remained unprocessed.
$error_operation = reset($operations);
$message = 'An error occurred while processing ' . $error_operation[0] . ' with arguments:' . print_r($error_operation[0], TRUE);
}
drupal_set_message($message, $type);
}