You are here

function uif_batch_import_users in User Import Framework 7

Same name and namespace in other branches
  1. 6 uif.admin.inc \uif_batch_import_users()

Batch import all users.

1 call to uif_batch_import_users()
uif_import_form_submit in ./uif.admin.inc
Form submission handler.

File

./uif.admin.inc, line 415
Simple, extensible user import from a CSV file.

Code

function uif_batch_import_users($form_state) {
  $batch = array(
    'title' => t('Importing users'),
    'operations' => array(
      array(
        'uif_batch_import_users_process',
        array(
          $form_state,
        ),
      ),
    ),
    'progress_message' => '',
    // uses count(operations) which is irrelevant in this case
    'finished' => 'uif_batch_import_users_finished',
    'file' => drupal_get_path('module', 'uif') . '/uif.admin.inc',
  );
  batch_set($batch);
}