You are here

function commons_trusted_contacts_batch_finished in Drupal Commons 7.3

Batch callback; "Finished" message.

1 string reference to 'commons_trusted_contacts_batch_finished'
commons_trusted_contacts_users_upgrade_batch_init in modules/commons/commons_trusted_contacts/commons_trusted_contacts.module
Menu callback; Batch for setting users as groups.

File

modules/commons/commons_trusted_contacts/commons_trusted_contacts.module, line 1289

Code

function commons_trusted_contacts_batch_finished($success, $results, $operations) {
  if ($success) {
    $message = format_plural($results['processed'], t('One user processed.'), t('@count users processed.'));
  }
  else {
    $message = t('Error encountered while upgrading users.');
  }
  drupal_set_message($message);
}