You are here

function drush_taxonomy_edge_rebuild_order in Taxonomy Edge 7

Rebuild order.

File

./taxonomy_edge.drush.inc, line 90
Drush commands for Taxonomy Edge.

Code

function drush_taxonomy_edge_rebuild_order($name) {
  $vid = _drush_taxonomy_edge_get_vid($name);
  if (!$vid) {
    return $vid;
  }
  module_load_include('rebuild.inc', 'taxonomy_edge');
  taxonomy_edge_rebuild_order_batch(array(
    $vid,
  ));
  $batch =& batch_get();
  $batch['progressive'] = FALSE;
  drush_backend_batch_process();
}