You are here

function lingotek_supported_type in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 7.3 lingotek.util.inc \lingotek_supported_type()
  2. 7.4 lingotek.util.inc \lingotek_supported_type()
  3. 7.5 lingotek.util.inc \lingotek_supported_type()
  4. 7.6 lingotek.util.inc \lingotek_supported_type()

Returns whether the given node type has support for translations.

Return value

Boolean value.

6 calls to lingotek_supported_type()
lingotek_access in ./lingotek.util.inc
Menu access callback.
lingotek_entity_translation_node_tab_access in ./lingotek.module
Entity Translation access callback when enabled with Lingotek module.
lingotek_form_node_form_alter in ./lingotek.module
Implements hook_form_BASE_FORM_ID_alter().
lingotek_node_update in ./lingotek.module
Implements hook_node_update().
lingotek_node_view in ./lingotek.module
Implements hook_node_view().

... See full list

File

./lingotek.util.inc, line 430
Utility functions.

Code

function lingotek_supported_type($type) {
  $lingotek_supported_explicitly = variable_get('language_content_type_' . $type, NULL) == LINGOTEK_ENABLED;
  $entity_translation_managed = lingotek_managed_by_entity_translation($type);
  return $lingotek_supported_explicitly || $entity_translation_managed;

  //we also support entity_translation managed content
}