function lingotek_get_translatable_field_columns in Lingotek Translation 7.7
2 calls to lingotek_get_translatable_field_columns()
- lingotek_admin_field_settings_form in ./
lingotek.admin.inc - Field Types and Settings Form
- lingotek_translatable_field_column in ./
lingotek.util.inc
File
- ./
lingotek.util.inc, line 2729 - Utility functions.
Code
function lingotek_get_translatable_field_columns($field_type = NULL, $field_module = NULL) {
// What columns DO we translate?
$default_translatable_columns = array(
'value',
'summary',
'alt',
'title',
);
if ($field_type !== NULL && $field_type === 'link_field' && $field_module !== NULL && $field_module === 'link') {
$default_translatable_columns[] = 'url';
$default_translatable_columns[] = 'attributes';
}
// Allow override of translatable columns using the variables table.
return variable_get('lingotek_translatable_column_defaults', $default_translatable_columns);
}