translation_supported_type

Versions
6 – 7
translation_supported_type($type)

Returns whether the given content type has support for translations.

Return value

Boolean value.

Code

modules/translation/translation.module, line 306

<?php
function translation_supported_type($type) {
  return variable_get('language_content_type_'. $type, 0) == TRANSLATION_ENABLED;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.