You are here

function lingotek_uses_node_translation in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_uses_node_translation()
  2. 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()
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 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;
}