function lingotek_supported_type in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.2 lingotek.util.inc \lingotek_supported_type()
- 7.3 lingotek.util.inc \lingotek_supported_type()
- 7.5 lingotek.util.inc \lingotek_supported_type()
- 7.6 lingotek.util.inc \lingotek_supported_type()
Returns whether the given node type has support for translations.
Return value
Boolean value.
5 calls to lingotek_supported_type()
- 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_update in ./
lingotek.module - Implements hook_node_update().
- lingotek_node_view in ./
lingotek.module - Implements hook_node_view().
- lingotek_upload_document in ./
lingotek.module
File
- ./
lingotek.util.inc, line 474 - Utility functions.
Code
function lingotek_supported_type($type) {
$lingotek_supported_explicitly = variable_get('language_content_type_' . $type, NULL) != '0';
$setting = variable_get('lingotek_entity_profiles');
$lingotek_supported_setting = isset($setting['node'][$type]) && $setting['node'][$type] != LingotekSync::PROFILE_DISABLED;
return $lingotek_supported_explicitly && $lingotek_supported_setting;
}