function userdelete_batch_finished in Bulk User Delete 7
Batch is finished.
1 string reference to 'userdelete_batch_finished'
- userdelete_admin_form_submit in ./
userdelete.module - Submit handler for the user delete form.
File
- ./
userdelete.module, line 108 - Provide a method of batch deleting users from a list of email addresses.
Code
function userdelete_batch_finished($success, $results, $operations) {
if ($success) {
if (isset($results['notfound'])) {
drupal_set_message('The following users were not found:', 'warning');
foreach ($results['notfound'] as $res) {
drupal_set_message($res, 'warning');
}
}
if (isset($results['deleted'])) {
drupal_set_message('The following users were deleted successfully:');
foreach ($results['deleted'] as $res) {
drupal_set_message($res);
}
}
}
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),
)));
}
}