You are here

function lingotek_field_language_data_cleanup_batch_worker in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.7 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
  2. 7.3 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
  3. 7.4 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
  4. 7.5 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
  5. 7.6 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()

Batch API processor for field data language updates.

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

File

./lingotek.batch.inc, line 559

Code

function lingotek_field_language_data_cleanup_batch_worker($nid, &$context) {
  $process_node = node_load($nid);
  if ($process_node->nid) {
    lingotek_field_language_data_cleanup_update_node($process_node->nid);

    //$context['message'] = t('Updating field data for node: @node_title', array('@node_title' => $process_node->title));
    $context['message'] = t('Preparing translatable content: @node_title', array(
      '@node_title' => $process_node->title,
    ));
  }
  $context['finished'] = 1;
}