translation_supported_type

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/translation/translation.module, строка 306

Версии
6
translation_supported_type($type)

Returns whether the given content type has support for translations.

Возвращаемое значение

Boolean value.

Код

<?php
function translation_supported_type($type) {
  return variable_get('language_content_type_'. $type, 0) == TRANSLATION_ENABLED;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему