You are here

function dba_statpack_batch_complete in Database Administration 7

1 string reference to 'dba_statpack_batch_complete'
dba_statpack_batch_setup in ./dba.statpack.inc

File

./dba.statpack.inc, line 111

Code

function dba_statpack_batch_complete($success, $results, $operations) {
  if ($success) {
    $_SESSION['dba_statpack_reports'] = $results;
  }
  else {

    // Cleanup if necessary
    if (isset($_SESSION['dba_statpack_reports'])) {
      unset($_SESSION['dba_statpack_reports']);
    }
    if (isset($_SESSION['dba_statpack_interval'])) {
      unset($_SESSION['dba_statpack_interval']);
    }
    drupal_set_message(t('Unexpected error; failed to generate report.'));
  }
}