You are here

function _taxonomy_menu_batch_init_context in Taxonomy menu 7

Same name and namespace in other branches
  1. 6.2 taxonomy_menu.batch.inc \_taxonomy_menu_batch_init_context()

Initialise the batch context.

Parameters

array $context: Batch context array.

int $start: The item to start on in this pass.

int $end: The end item of this pass.

int $items: The number of items to process in this pass.

1 call to _taxonomy_menu_batch_init_context()
_taxonomy_menu_insert_link_items_process in ./taxonomy_menu.batch.inc
Batch operation callback function: inserts 10 menu link items.

File

./taxonomy_menu.batch.inc, line 95
Batch API Code

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