function oa_core_batch_set in Open Atrium Core 7.2
Wrapper around
Parameters
array $batch:
See also
batch_set().
1 call to oa_core_batch_set()
- _oa_core_update_access_records_batch_prepare in includes/
oa_core.access.inc - Set up the batch process to update node records.
File
- includes/
oa_core.util.inc, line 1871 - Code for Utility functions for OpenAtrium spaces
Code
function oa_core_batch_set(&$batch) {
// For Drush.
if (drupal_is_cli()) {
$batch['progressive'] = FALSE;
batch_set($batch);
if (function_exists('drush_backend_batch_process')) {
// Running via drush, to start the batch processing.
drush_backend_batch_process();
}
}
else {
// Running interactively via the UI so just set the batch.
batch_set($batch);
}
}