function lingotek_field_language_data_cleanup_batch_worker in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
- 7.2 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
- 7.4 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
- 7.5 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
- 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 522 - Central location for batch create functions, before control is handed off to individual batch command files.
Code
function lingotek_field_language_data_cleanup_batch_worker($nid, &$context) {
$process_node = lingotek_node_load_default($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;
}