function _taxonomy_menu_batch_update_context in Taxonomy menu 6.2
Same name and namespace in other branches
- 7 taxonomy_menu.batch.inc \_taxonomy_menu_batch_update_context()
1 call to _taxonomy_menu_batch_update_context()
File
- ./
taxonomy_menu.batch.inc, line 113 - The $batch can include the following values. Only 'operations' and 'finished' are required, all others will be set to default values.
Code
function _taxonomy_menu_batch_update_context(&$context, $end, $total, $msg) {
// Update context array
if ($end > $total) {
$context['finished'] = 1;
return;
}
$context['message'] = "{$msg}: {$end} of {$total}";
$context['sandbox']['progress'] = $end;
$context['finished'] = $end / $total;
}