function taxonomy_edge_rebuild_edges_batch in Taxonomy Edge 7.2
Same name and namespace in other branches
- 8 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_edges_batch()
- 6 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_edges_batch()
- 7 taxonomy_edge.rebuild.inc \taxonomy_edge_rebuild_edges_batch()
Start batch job for rebuild of edges
2 calls to taxonomy_edge_rebuild_edges_batch()
- taxonomy_edge_enable in ./
taxonomy_edge.install - Implements hook_enable().
- taxonomy_edge_rebuild_page_confirm_submit in ./
taxonomy_edge.admin.inc - Submit callback; rebuild trees.
File
- ./
taxonomy_edge.rebuild.inc, line 11 - This file contains the functions for reuilding various tables.
Code
function taxonomy_edge_rebuild_edges_batch($vid) {
$batch = array(
'operations' => array(
array(
'taxonomy_edge_rebuild_edges',
array(
$vid,
),
),
),
'finished' => 'taxonomy_edge_rebuild_finished',
'file' => drupal_get_path('module', 'taxonomy_edge') . '/taxonomy_edge.rebuild.inc',
'title' => t('Rebuilding taxonomy edges'),
'init_message' => t('Rebuilding taxonomy edges'),
);
batch_set($batch);
}