function lingotek_entity_download_triggered in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.module \lingotek_entity_download_triggered()
 - 7.5 lingotek.module \lingotek_entity_download_triggered()
 
1 call to lingotek_entity_download_triggered()
- LingotekEntity::downloadTriggered in lib/
Drupal/ lingotek/ LingotekEntity.php  - Updates the local content of $target_code with data from a Lingotek Document
 
File
- ./
lingotek.module, line 1656  
Code
function lingotek_entity_download_triggered($entity, $entity_type, $lingotek_locale, &$context = FALSE) {
  if (is_numeric($entity)) {
    $entity = lingotek_entity_load_single($entity_type, $entity);
  }
  if (!$entity->lingotek['sync_method']) {
    return FALSE;
  }
  return lingotek_entity_download($entity, $entity_type, $lingotek_locale, $context);
}