You are here

function ca_conversion_form_submit in Ubercart 6.2

See also

ca_conversion_form_submit()

File

ca/ca.admin.inc, line 1086
Conditional actions overview UI.

Code

function ca_conversion_form_submit($form, &$form_state) {

  // Convert workflow-ng configurations in a batch process because there may be
  // a lot of them.
  $batch = array(
    'operations' => array(
      array(
        '_ca_convert_configurations',
        array(),
      ),
    ),
    'finished' => '_ca_conversion_finished',
    'title' => t('Converting Workflow-ng configurations'),
    'init_message' => t('Beginning conversion...'),
    'progress_message' => t('@percentage% converted'),
    'file' => drupal_get_path('module', 'ca') . '/ca.admin.inc',
  );
  batch_set($batch);
}