You are here

function lingotek_get_translatable_field_types in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_get_translatable_field_types()
  2. 7.4 lingotek.util.inc \lingotek_get_translatable_field_types()
  3. 7.5 lingotek.util.inc \lingotek_get_translatable_field_types()
3 calls to lingotek_get_translatable_field_types()
lingotek_admin_entity_bundle_profiles_form in ./lingotek.admin.inc
Content translation form
lingotek_get_translatable_fields_by_content_type in ./lingotek.util.inc
lingotek_xml_fields in ./lingotek.util.inc

File

./lingotek.util.inc, line 247
Utility functions.

Code

function lingotek_get_translatable_field_types() {

  // What types of fields DO we translate?
  $included_fields = array(
    'text',
    'text_long',
    'text_textfield',
    'text_textarea',
    'text_textarea_with_summary',
    'field_collection_embed',
  );
  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;
}