function community_tags_node_batch_finished in Community Tags 6.2
Batch 'finished' callback
1 string reference to 'community_tags_node_batch_finished'
- community_tags_node_rebuild_form_submit in community_tags_node/
community_tags_node.admin.inc - Rebuild confirmation form handler. Starts batched rebuild operation.
File
- community_tags_node/
community_tags_node.batch.inc, line 148 - community_tags_node.batch.inc
Code
function community_tags_node_batch_finished($success, $results, $operations) {
if ($success) {
// Here we do something meaningful with the results.
$message = count($results) . ' processed.';
$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);
}