function lingotek_field_language_data_cleanup_batch_worker in Lingotek Translation 7.5
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.3 lingotek.batch.inc \lingotek_field_language_data_cleanup_batch_worker()
- 7.4 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 442 - 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($entity_type, $entity_id, &$context) {
$result = lingotek_field_language_data_cleanup_update_entity($entity_type, $entity_id, $context);
if (!isset($context['results']['field_cleanup'])) {
$context['results']['field_cleanup'] = 0;
}
if ($result) {
$context['results']['field_cleanup']++;
}
$context['finished'] = 1;
}