You are here

function dba_statpack_batch_setup in Database Administration 7

1 call to dba_statpack_batch_setup()
dba_statpack_page_submit in ./dba.statpack.inc
Batch process statpack report.

File

./dba.statpack.inc, line 74

Code

function dba_statpack_batch_setup($interval) {
  $batch = array(
    'title' => t('Collecting database statistics'),
    'operations' => array(
      array(
        'dba_statpack_batch_snapshot',
        array(
          $interval,
        ),
      ),
    ),
    'finished' => 'dba_statpack_batch_complete',
    'init_message' => t('Taking initial database statistics snapshot.'),
    'progress_message' => '',
    'error_message' => t('Whoops! We ran into an unexpected error.'),
    'file' => drupal_get_path('module', 'dba') . '/dba.statpack.inc',
  );
  batch_set($batch);
}