function fc_rebuild_finished in Field Complete 7
Batch 'finished' callback
1 string reference to 'fc_rebuild_finished'
File
- ./
fc.admin.inc, line 159 - Field Complete - Provides field-based completeness for any entity - admin.
Code
function fc_rebuild_finished($success, $results, $operations) {
if ($success) {
// Here we do something meaningful with the results.
$message = theme('item_list', array(
'items' => $results,
));
drupal_set_message($message);
}
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, 'error');
}
}