function lingotek_get_translatable_field_types in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.4 lingotek.util.inc \lingotek_get_translatable_field_types()
- 7.5 lingotek.util.inc \lingotek_get_translatable_field_types()
- 7.6 lingotek.util.inc \lingotek_get_translatable_field_types()
4 calls to lingotek_get_translatable_field_types()
- lingotek_admin_entity_bundle_profiles_form in ./
lingotek.admin.inc - Content translation form
- lingotek_admin_field_settings_form in ./
lingotek.admin.inc - Field Types and Settings Form
- lingotek_get_translatable_fields_by_content_type in ./
lingotek.util.inc - lingotek_xml_fields in ./
lingotek.util.inc
File
- ./
lingotek.util.inc, line 250 - Utility functions.
Code
function lingotek_get_translatable_field_types() {
// What types of fields DO we translate?
$included_fields = array(
'text',
'text_long',
'text_with_summary',
'field_collection',
'image',
);
if (module_exists('link')) {
$included_fields[] = 'link_field';
}
// Allow override of translatable fields using the variables table.
$included_fields_override = variable_get('lingotek_translatable_field_types', array());
if (!empty($included_fields_override)) {
$included_fields = $included_fields_override;
}
return $included_fields;
}