summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-08 18:16:43 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-08 18:16:43 +0000
commitc6c572a151211926c7edb3078e52ccb14e691af8 (patch)
treebb084fe658ec049e1ecf9bfd911a799d76f8ef7a /modules
parenta71b70f069bba49477b49a3da1e7f81d3d2f0a75 (diff)
downloadbrdo-c6c572a151211926c7edb3078e52ccb14e691af8.tar.gz
brdo-c6c572a151211926c7edb3078e52ccb14e691af8.tar.bz2
- Patch #632172 by plach: node language and field languages may differ.
Diffstat (limited to 'modules')
-rw-r--r--modules/locale/locale.module5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 03f4b2e9c..f553fe16d 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -512,10 +512,7 @@ function locale_field_language_fallback(&$display_language, $entity, $langcode)
* Implements hook_entity_info_alter().
*/
function locale_entity_info_alter(&$entity_info) {
- $enabled = drupal_multilingual();
- foreach ($entity_info as $type => $info) {
- $entity_info[$type]['translation']['locale'] = $enabled;
- }
+ $entity_info['node']['translation']['locale'] = TRUE;
}
/**