1 node.admin.inc | _node_mass_update_batch_finished($success, $results, $operations) |
Menu callback: Reports the status of batch operation for node_mass_update().
Parameters
bool $success: A boolean indicating whether the batch mass update operation successfully concluded.
int $results: The number of nodes updated via the batch mode process.
array $operations: An array of function calls (not used in this function).
File
- core/
modules/ node/ node.admin.inc, line 146 - Admin page callbacks for the Node module.
Code
function _node_mass_update_batch_finished($success, $results, $operations) {
if ($success) {
backdrop_set_message(t('The update has been performed.'));
}
else {
backdrop_set_message(t('An error occurred and processing did not complete.'), 'error');
$message = format_plural(count($results), '1 item successfully processed:', '@count items successfully processed:');
$message .= theme('item_list', array('items' => $results));
backdrop_set_message($message);
}
}