function lingotek_uses_node_translation in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_uses_node_translation()
- 7.6 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
2 calls to lingotek_uses_node_translation()
File
- ./lingotek.util.inc, line 1934 
- 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;
}