function party_user_sync_finished in Party 7
Same name and namespace in other branches
- 8.2 modules/party_user/party_user.batch.inc \party_user_sync_finished()
Finished callback
1 string reference to 'party_user_sync_finished'
- party_user_sync_form_submit in modules/
party_user/ party_user.admin.inc
File
- modules/
party_user/ party_user.batch.inc, line 28 - Batch Processor for User Sync
Code
function party_user_sync_finished($success, $results, $ops) {
if ($success) {
$message = count($results) . ' created';
$message .= theme('item_list', $results);
}
else {
// An error occured
$error_operation = reset($ops);
$message = t('An error occurred while processing %error_operation with arguments: @arguments', array(
'%error_operation' => $error_operation[0],
'@arguments' => print_r($error_operation[1], TRUE),
));
}
drupal_set_message($message);
}