You are here

function node_recur_node_batch_finished in Node recur 7.2

Same name and namespace in other branches
  1. 7 node_recur.batch.inc \node_recur_node_batch_finished()

Batch ending

1 string reference to 'node_recur_node_batch_finished'
node_recur_node_batch_start in ./node_recur.module
Start the batch to generate recurring nodes

File

./node_recur.module, line 203

Code

function node_recur_node_batch_finished($success, $results, $operations) {
  if ($success) {
    $count = count($results);
    drupal_set_message(t('%count %items have been generated.', array(
      '%count' => $count,
      '%items' => format_plural($count, 'item', 'items'),
    )));
  }
  else {
    drupal_set_message(t('An error occurred. Please try again.'), 'error');
  }
}