function lingotek_uses_node_translation in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_uses_node_translation()
- 7.5 lingotek.util.inc \lingotek_uses_node_translation()
Return true if the node's profile is set to node-based translation, false otherwise.
Parameters
object $node:
Return value
True or False
3 calls to lingotek_uses_node_translation()
- lingotek_field_language_data_cleanup_update_entity in ./
lingotek.batch.inc - Ensures correct language-specific field data for the specified item.
- lingotek_form_node_form_alter in ./
lingotek.module - Implements hook_form_BASE_FORM_ID_alter().
- lingotek_process_entity_xml in ./
lingotek.remote.inc
File
- ./
lingotek.util.inc, line 2030 - Utility functions.
Code
function lingotek_uses_node_translation($node = NULL) {
if (!isset($node->lingotek['profile'])) {
return FALSE;
}
$profile_info = lingotek_get_profile_settings($node->lingotek['profile']);
if ($profile_info['lingotek_nodes_translation_method'] == 'node') {
return TRUE;
}
// Not using node-based translation.
return FALSE;
}