You are here

function lingotek_node_source_language_cleanup_batch_worker in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 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 492
Central location for batch create functions, before control is handed off to individual batch command files.

Code

function lingotek_node_source_language_cleanup_batch_worker($nid, $source_language) {
  $loaded_node = lingotek_node_load_default($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);
}