Finishes callback of system page locale import batch.
bool $success: Information about the success of the batch import.
array $results: Information about the results of the batch import.
function locale_config_batch_finished($success, array $results) {
if ($success) {
$configuration = isset($results['stats']['config']) ? $results['stats']['config'] : 0;
if ($configuration) {
drupal_set_message(t('The configuration was successfully updated. There are %number configuration objects updated.', array(
'%number' => $configuration,
)));
watchdog('locale', 'The configuration was successfully updated. %number configuration objects updated.', array(
'%number' => $configuration,
));
}
else {
drupal_set_message(t('No configuration objects have been updated.'));
watchdog('locale', 'No configuration objects have been updated.', array(), WATCHDOG_WARNING);
}
}
}