You are here

function taxonomy_edge_rebuild_finished in Taxonomy Edge 7.2

Same name and namespace in other branches
  1. 8 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_finished()
  2. 6 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_finished()
  3. 7 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_finished()

Finished function for rebuild tree batch operation.

Parameters

type $success:

type $result:

type $operations:

2 string references to 'taxonomy_edge_rebuild_finished'
taxonomy_edge_rebuild_edges_batch in ./taxonomy_edge.rebuild.inc
Start batch job for rebuild of edges
taxonomy_edge_rebuild_order_batch in ./taxonomy_edge.rebuild.inc
Start batch job for rebuild of order

File

./taxonomy_edge.rebuild.inc, line 47
This file contains the functions for reuilding various tables.

Code

function taxonomy_edge_rebuild_finished($success, $results, $operations) {
  if ($success) {

    // Here we do something meaningful with the results.
    $message = theme('item_list', array(
      'items' => $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);
}