You are here

function translation_supported_type in Drupal 7

Same name and namespace in other branches
  1. 6 modules/translation/translation.module \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 modules/translation/translation.module
Implements hook_form_BASE_FORM_ID_alter() for node_form().
translation_language_switch_links_alter in modules/translation/translation.module
Implements hook_language_switch_links_alter().
translation_node_delete in modules/translation/translation.module
Implements hook_node_delete().
translation_node_insert in modules/translation/translation.module
Implements hook_node_insert().
translation_node_prepare in modules/translation/translation.module
Implements hook_node_prepare().

... See full list

File

modules/translation/translation.module, line 513
Manages content translations.

Code

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