function _email_verify_batch_finish_batch in Email Verify 8.2
Same name and namespace in other branches
- 7.2 email_verify.check.inc \_email_verify_batch_finish_batch()
The function that is called when the batch is complete.
1 string reference to '_email_verify_batch_finish_batch'
- email_verify_user_check_form_submit in ./
email_verify.check.inc - Submit handler for the user check form.
File
- ./
email_verify.check.inc, line 357 - User email check menu callback file for email_verify module.
Code
function _email_verify_batch_finish_batch($success, $results, $operations) {
if ($success) {
if (!empty($results['users_to_display'])) {
// Save the collected data for display.
variable_set('email_verify_users_to_display', $results['users_to_display']);
}
}
else {
// An error occurred. $operations contains the operations that remained
// unprocessed.
$error_operation = reset($operations);
drupal_set_message(t('An error occurred while processing @operation with arguments : @args', array(
'@operation' => $error_operation[0],
'@args' => print_r($error_operation[0], TRUE),
)));
}
}