You are here

function _taxonomy_menu_batch_update_context in Taxonomy menu 6.2

Same name and namespace in other branches
  1. 7 taxonomy_menu.batch.inc \_taxonomy_menu_batch_update_context()
1 call to _taxonomy_menu_batch_update_context()
_taxonomy_menu_insert_link_items_process in ./taxonomy_menu.batch.inc

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;
}