diff options
Diffstat (limited to 'modules/translation/translation.module')
-rw-r--r-- | modules/translation/translation.module | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index c79f75254..cb2731bd8 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -240,13 +240,9 @@ function translation_node_prepare($node) { $node->translation_source = $source_node; $node->title = $source_node->title; - // If user has no access to the filter used for the body, Drupal core - // does not let the edit form to appear, so we should avoid exposing - // the source text here too. - $formats = filter_formats(); - $node->body = (filter_access($formats[$source_node->body[$source_node->language][0]['format']])) ? $source_node->body : ''; - // Let every module add custom translated fields. - module_invoke_all('node_prepare_translation', $node); + // Add field translations and let other modules module add custom translated + // fields. + field_attach_prepare_translation('node', $node, $node->language, $source_node, $source_node->language); } } |