You are here

function mass_pwreset_multiple_reset in Mass Password Reset 7

Same name and namespace in other branches
  1. 8 mass_pwreset.module \mass_pwreset_multiple_reset()
  2. 2.x mass_pwreset.module \mass_pwreset_multiple_reset()

Batch function: Multiple reset

1 call to mass_pwreset_multiple_reset()
mass_pwreset_submit in ./mass_pwreset.admin.inc
Form submission handler for mass_pwreset_form().

File

./mass_pwreset.module, line 126
Reset user passwords and optionally notify users.

Code

function mass_pwreset_multiple_reset($data) {
  $batch = array(
    'operations' => array(
      array(
        'mass_pwreset_batch_process',
        array(
          $data,
        ),
      ),
    ),
    'finished' => 'mass_pwreset_batch_finished',
    'title' => t('Multiple password reset'),
    'init_message' => t('Multiple password reset in progress.'),
    'progress_message' => t('Executed @current of @total.'),
    'error_message' => t('The Multiple password reset have encountered an error'),
    'file' => drupal_get_path('module', 'mass_pwreset') . '/mass_pwreset.batch.inc',
  );
  batch_set($batch);
}