- Patch #632172 by plach: node language and field languages may differ.

merge-requests/26/head
Dries Buytaert 2010-04-08 18:16:43 +00:00
parent a71b70f069
commit c6c572a151
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}
/**