You are here

function batch_test_theme_batch in Drupal 7

Menu callback: run a batch for testing theme used on the progress page.

1 string reference to 'batch_test_theme_batch'
batch_test_menu in modules/simpletest/tests/batch_test.module
Implement hook_menu().

File

modules/simpletest/tests/batch_test.module, line 476
Helper module for the Batch API tests.

Code

function batch_test_theme_batch() {
  batch_test_stack(NULL, TRUE);
  $batch = array(
    'operations' => array(
      array(
        '_batch_test_theme_callback',
        array(),
      ),
    ),
  );
  batch_set($batch);
  batch_process('batch-test/redirect');
}