Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Found while debugging #553306-76: Make nodes have no body field by default. Remove deprecated APIs for body field:
'Translatable fields' and entity_info have a dependency on the number of languages enabled on a site, through locale_entity_info_alter()
Yet a call to locale_add_language() ("API function to add a language") doesn't refresh the cached entity_info.
Comment | File | Size | Author |
---|---|---|---|
#5 | language_add-642614-2.patch | 1.19 KB | plach |
Comments
Comment #1
plachCleaning-up the "locale module" issue queue as per http://cyrve.com/criticals.
Comment #2
plachThis moves the
hook_multilingual_settings_changed()
invocation from the submit handler tolocale_add_language()
.Related to #632172: Node language and field languages may differ.
Comment #3
plachComment #4
yched CreditAttribution: yched commentedno patch ? :-)
Comment #5
plachlol :)
Comment #6
yched CreditAttribution: yched commentedLooks good. Should a similar change (move notification from form submit to API func) be done when a language is disabled / removed ?
Comment #7
plachObviously the answer should be "of course", unfortunately we have no API function to disable/remove languages.
Comment #8
yched CreditAttribution: yched commentedOK. Looks RTBC, then, but I guess sun should review ?
Comment #9
sunaight - plach just clarified that there are no API functions for changing/removing languages.
Comment #10
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.