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.
Hi,
I use i18n module and admin_language. I enabled the option "Hide administration language on node form" - but the backend language is still shown on content edit forms.
Is this a known bug? How to debug?
Comment | File | Size | Author |
---|---|---|---|
#2 | custom-admin-language-hook-alter-higher-priority.patch | 1.77 KB | vistree |
Comments
Comment #2
vistree CreditAttribution: vistree commentedOK, found out that i18n causes the problem. i18n also alters the language field. Attached is a patch which changes the weight of the admin_language form_alter hook.
Also, I changed a condition in the module, where languages are counted and function only applies, if the count of languages is greater then 2. I think it must be 1!!