function translation_supported_type in Drupal 6
Same name and namespace in other branches
- 7 modules/translation/translation.module \translation_supported_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 modules/
translation/ translation.module - Implementation of hook_form_alter().
- translation_nodeapi in modules/
translation/ translation.module - Implementation of hook_nodeapi().
- _translation_tab_access in modules/
translation/ translation.module - Menu access callback.
File
- 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;
}