function lingotek_supported_type in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.2 lingotek.util.inc \lingotek_supported_type()
- 7.3 lingotek.util.inc \lingotek_supported_type()
- 7.4 lingotek.util.inc \lingotek_supported_type()
- 7.5 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 550 - 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);
}