You are here

function formassembly_batch_extract_forms in FormAssembly 7

Implementation of callback_batch_operation()

Callback function: second batch operation to sync with FormAssembly

Parameters

$context: Required batch context array

2 string references to 'formassembly_batch_extract_forms'
drush_formassembly_fasync in ./formassembly.drush.inc
Callback function for drush command to sync with FormAssembly
formassembly_settings_form_submit in ./formassembly.admin.inc
Submit handler for the FormAssembly settings form.

File

./formassembly.module, line 372
Contains hooks implementations and callbacks to non-admin pages.

Code

function formassembly_batch_extract_forms(&$context) {
  if (!empty($context['results']['request'])) {
    $context['finished'] = 0.99;
    $context['message'] = t('Processing FormAssembly Responses');
    $context['results']['request']
      ->processResponses();
    $context['finished'] = 1;
  }
}