You are here

function taxonomy_edge_rebuild_finished in Taxonomy Edge 8

Same name and namespace in other branches
  1. 6 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_finished()
  2. 7.2 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 calls to taxonomy_edge_rebuild_finished()
taxonomy_edge_cron in ./taxonomy_edge.module
Implements hook_cron().
taxonomy_edge_cron_rebuild in ./taxonomy_edge.module
Rebuild edges
3 string references to 'taxonomy_edge_rebuild_finished'
taxonomy_edge_rebuild_all_batch in ./taxonomy_edge.rebuild.inc
Start batch job for rebuild of edges and order
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 64
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, 'status');
}