function state_flow_node_revision_operation_change_state_batch_finished in State Machine 7.2
Same name and namespace in other branches
- 7.3 modules/state_flow/state_flow.module \state_flow_node_revision_operation_change_state_batch_finished()
Node Mass Update Batch 'finished' callback.
1 string reference to 'state_flow_node_revision_operation_change_state_batch_finished'
- state_flow_node_revision_operation_change_state in modules/
state_flow/ state_flow.module - Operation callback to change state of a node
File
- modules/
state_flow/ state_flow.module, line 737 - An implementation of node revision workflow for Drupal based on the State Machine system.
Code
function state_flow_node_revision_operation_change_state_batch_finished($success, $results, $operations) {
if ($success) {
drupal_set_message(t('The update has been performed.'));
}
else {
drupal_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,
));
drupal_set_message($message);
}
}