You are here

function _taxonomy_menu_batch_init_context in Taxonomy menu 6.2

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

File

./taxonomy_menu.batch.inc, line 94
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_init_context(&$context, &$start, &$end, $items) {

  // Initialize sandbox the first time through.
  if (!isset($context['sandbox']['progress'])) {
    $context['sandbox']['progress'] = 0;
  }
  $start = $context['sandbox']['progress'];
  $end = $start + $items;
}