function translation_supported_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/core/modules/translation/translation.module
Implements hook_form_BASE_FORM_ID_alter() for node_form().
translation_language_switch_links_alter in drupal/core/modules/translation/translation.module
Implements hook_language_switch_links_alter().
translation_node_insert in drupal/core/modules/translation/translation.module
Implements hook_node_insert().
translation_node_predelete in drupal/core/modules/translation/translation.module
Implements hook_node_predelete().
translation_node_prepare in drupal/core/modules/translation/translation.module
Implements hook_node_prepare().

... See full list

File

drupal/core/modules/translation/translation.module, line 519
Manages content translations.

Code

function translation_supported_type($type) {
  return variable_get('node_type_language_translation_enabled_' . $type, FALSE);
}