function lingotek_batch_update_entity_languages_by_profile_finished in Lingotek Translation 7.7
1 string reference to 'lingotek_batch_update_entity_languages_by_profile_finished'
File
- ./
lingotek.batch.inc, line 851 - Central location for batch create functions, before control is handed off to individual batch command files.
Code
function lingotek_batch_update_entity_languages_by_profile_finished($success, $results, $operations) {
if ($success) {
$added = !empty($results['added']) ? $results['added'] : 0;
$removed = !empty($results['removed']) ? $results['removed'] : 0;
$added_msg = format_plural($added, 'One target locale added.', '@count target locales added.');
$removed_msg = format_plural($removed, 'One target locale removed.', '@count target locales removed.');
drupal_set_message(t('Profile update complete'));
drupal_set_message($added_msg);
drupal_set_message($removed_msg);
}
else {
drupal_set_message(t('Finished with an error.'));
$message = t('Finished with an error.');
drupal_set_message(filter_xss($message));
//xss checks not necessary here. Text only comes from php
}
}