function translation_supported_type
7.x translation.module | translation_supported_type($type) |
6.x translation.module | translation_supported_type($type) |
Returns whether the given content type has support for translations.
Return value
Boolean value.
3 calls to translation_supported_type()
- translation_form_alter in drupal-6.x/
modules/ translation/ translation.module - Implementation of hook_form_alter().
- translation_nodeapi in drupal-6.x/
modules/ translation/ translation.module - Implementation of hook_nodeapi().
- _translation_tab_access in drupal-6.x/
modules/ translation/ translation.module - Menu access callback.
File
- drupal-6.x/
modules/ translation/ translation.module, line 307 - Manages content translations.
Code
function translation_supported_type($type) {
return variable_get('language_content_type_' . $type, 0) == TRANSLATION_ENABLED;
}