You are here

function _batch_test_nested_batch_callback in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_nested_batch_callback()
  2. 9 core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_nested_batch_callback()

Implements callback_batch_operation().

Batch operation setting up its own batch.

1 string reference to '_batch_test_nested_batch_callback'
_batch_test_batch_4 in modules/simpletest/tests/batch_test.module
Batch 4: batch within a batch.

File

modules/simpletest/tests/batch_test.callbacks.inc, line 81
Batch callbacks for the Batch API tests.

Code

function _batch_test_nested_batch_callback() {
  batch_test_stack('setting up batch 2');
  batch_set(_batch_test_batch_2());
}