You are here

function lingotek_supported_type in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.2 \lingotek_supported_type()
  2. 7.4 \lingotek_supported_type()
  3. 7.5 \lingotek_supported_type()
  4. 7.6 \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 ./
Menu access callback.
lingotek_entity_translation_node_tab_access in ./lingotek.module
Entity Translation access callback when enabled with Lingotek Translation module.
lingotek_form_node_form_alter in ./lingotek.module
Implements hook_form_BASE_FORM_ID_alter().
lingotek_node_view in ./lingotek.module
Implements hook_node_view().
lingotek_pm in ./
Page callback for the Lingotek local task on node detail pages.

... See full list


./, line 424
Utility functions.


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