function translation_supported_type

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.

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!translation!translation.module/function/translation_supported_type/7.x