You are here

function entity_translation_upgrade_end in Entity Translation 7

Finshed batch callback.

1 string reference to 'entity_translation_upgrade_end'
entity_translation_upgrade_start in entity_translation_upgrade/entity_translation_upgrade.admin.inc
Starts the batch process to perform the upgrade.

File

entity_translation_upgrade/entity_translation_upgrade.admin.inc, line 35
Converts node translations into field-based translations.

Code

function entity_translation_upgrade_end($success, $results, $operations, $elapsed) {
  if (!empty($results)) {
    $message = format_plural($results['total'], '1 node translation successfully upgraded.', '@count node translations successfully upgraded.');
    watchdog('entity translation upgrade', '@count node translations successfully upgraded.', array(
      '@count' => $results['total'],
    ), WATCHDOG_INFO);
  }
  else {
    $message = t('No node translation available for the upgrade.');
  }
  drupal_set_message($message);
}