You are here

function lingotek_node_source_language_cleanup_batch_worker in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.3 lingotek.batch.inc \lingotek_node_source_language_cleanup_batch_worker()
  2. 7.4 lingotek.batch.inc \lingotek_node_source_language_cleanup_batch_worker()

Batch API worker for changing the node language setting.

1 string reference to 'lingotek_node_source_language_cleanup_batch_worker'
lingotek_field_language_data_cleanup_batch_create in ./lingotek.batch.inc
Field Language Data Cleanup Utility

File

./lingotek.batch.inc, line 548

Code

function lingotek_node_source_language_cleanup_batch_worker($nid, $source_language) {
  $loaded_node = node_load($nid);
  $loaded_node->language = $source_language;
  $loaded_node->lingotek_upload_override = 0;

  // Set 0 : Ensure that uploading does not occur. Set 1 : Force uploading to occur
  node_save($loaded_node);
}