You are here

function _fancy_file_delete_batch_run in Fancy File Delete 8

The batch operations to run for either function.

Parameters

object $operations: The operations array from each submit handler.

3 calls to _fancy_file_delete_batch_run()
FancyFileDeleteManual::_submitForm in src/Form/FancyFileDeleteManual.php
fancy_file_delete_files in ./fancy_file_delete.module
Normal File Delete Action for hook_action_info.
fancy_file_delete_files_force in ./fancy_file_delete.module
Force File Delete Action for hook_action_info.

File

./fancy_file_delete.module, line 172

Code

function _fancy_file_delete_batch_run($operations) {
  $batch = [
    'title' => t('Fun Stuff is Happening...'),
    'operations' => $operations,
    'finished' => 'fancy_file_delete_batch_finished',
    'file' => drupal_get_path('module', 'fancy_file_delete') . '/fancy_file_delete.batch.inc',
  ];
  batch_set($batch);
}