You are here

function deploy_item_batch in Deploy - Content Staging 6

Wrapper function to deploy_item() with batch API goodness.

Parameters

$item: The item being deployed.

$context: Batch API context var for messages and results

1 string reference to 'deploy_item_batch'
deploy_push_batch in ./deploy.module
Batch API callback for the deployment push process.

File

./deploy.module, line 473
Deployment API which enables modules to deploy items between servers.

Code

function deploy_item_batch($item, &$context) {
  deploy_item($item);

  // Update our progress information. Error handling is all managed in deploy_item()
  // and logging is all done in the depoyment log, so we don't even worry about that.
  $context['message'] = t('Now processing %item', array(
    '%item' => $item['description'],
  ));
}