You are here

function lingotek_supported_type in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.2 lingotek.util.inc \lingotek_supported_type()
  2. 7.3 lingotek.util.inc \lingotek_supported_type()
  3. 7.4 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.

1 call to lingotek_supported_type()
lingotek_node_view in ./lingotek.module
Implements hook_node_view().

File

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

Code

function lingotek_supported_type($type) {
  $lingotek_supported_explicitly = variable_get('language_content_type_' . $type, NULL) != '0';
  return $lingotek_supported_explicitly && lingotek_enabled_bundle('node', $type);
}