getCurrentUserAsSingle()->id(); drush_include_engine('drupal', 'batch'); _drush_backend_batch_process($command, $args, $options); } /** * Process sets from the specified batch. * * This function is called by the worker process that is spawned by the * drush_backend_batch_process function. * * The command called needs to call this function after it's special bootstrap * requirements have been taken care of. * * @param int $id * The batch ID of the batch being processed. */ function drush_batch_command($id) { include_once(DRUSH_DRUPAL_CORE . '/includes/batch.inc'); drush_include_engine('drupal', 'batch'); _drush_batch_command($id); }