function _system_batch_theme

Theme callback for the default batch page.

1 string reference to '_system_batch_theme'
system_menu in modules/system/system.module
Implements hook_menu().

File

modules/system/system.module, line 1087

Code

function _system_batch_theme() {
  // Retrieve the current state of the batch.
  $batch =& batch_get();
  if (!$batch && isset($_REQUEST['id'])) {
    require_once DRUPAL_ROOT . '/includes/batch.inc';
    $batch = batch_load($_REQUEST['id']);
  }
  // Use the same theme as the page that started the batch.
  if (!empty($batch['theme'])) {
    return $batch['theme'];
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.