function lingotek_is_inplace_source_download in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lingotek.util.inc \lingotek_is_inplace_source_download()
1 call to lingotek_is_inplace_source_download()
File
- ./
lingotek.util.inc, line 2652 - Utility functions.
Code
function lingotek_is_inplace_source_download($entity_type, $entity, $lingotek_locale) {
if ($entity_type == 'node' && !empty($entity->lingotek['allow_source_overwriting']) && !empty($entity->lingotek['original_language']) && $entity->language == Lingotek::convertLingotek2Drupal($lingotek_locale)) {
return TRUE;
}
return FALSE;
}