You are here

function lockr_migrate_keys_form_submit in Lockr 7.3

Same name and namespace in other branches
  1. 7.2 lockr.forms.inc \lockr_migrate_keys_form_submit()

File

./lockr.forms.inc, line 60

Code

function lockr_migrate_keys_form_submit($form, &$form_state) {
  variable_set('lockr_migrate_key', base64_encode($form_state['migrate_key']));
  $batch = [
    'title' => t('Migrating'),
    'operations' => [
      [
        'lockr_migrate_keys_batch_op',
        [
          $form_state['to_migrate'],
        ],
      ],
    ],
    'file' => drupal_get_path('module', 'lockr') . '/lockr.forms.inc',
    'finished' => 'lockr_migrate_keys_batch_finished',
  ];
  batch_set($batch);
  $form_state['redirect'] = 'admin/config/system/lockr';
}