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

TRUE if translation is supported, and FALSE if not.

8 calls to translation_supported_type()
translation_form_node_form_alter in drupal-7.x/modules/translation/translation.module
Implements hook_form_BASE_FORM_ID_alter() for node_form().
translation_language_switch_links_alter in drupal-7.x/modules/translation/translation.module
Implements hook_language_switch_links_alter().
translation_node_delete in drupal-7.x/modules/translation/translation.module
Implements hook_node_delete().
translation_node_insert in drupal-7.x/modules/translation/translation.module
Implements hook_node_insert().
translation_node_prepare in drupal-7.x/modules/translation/translation.module
Implements hook_node_prepare().

... See full list

File

drupal-7.x/modules/translation/translation.module, line 488
Manages content translations.

Code

function translation_supported_type($type) {
  return variable_get('language_content_type_' . $type, 0) == TRANSLATION_ENABLED;
}