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.
Hello
Sometimes the paths can be admin or non-admin in depends of specific conditions.
For example the path "node/add/*" is admin path.
But the regular user can create forum topics on the site and he should do it in the front theme. It's done via panels. Path is "node/add/forum"
In this case we should display language according to the url prefix (for example), but not according to the admin language module decision.
Comment | File | Size | Author |
---|---|---|---|
#3 | admin_language-alter_language_switching-2577421-3-D7.patch | 1.18 KB | eugene.ilyin |
Comments
Comment #2
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer commentedComment #3
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedI propose to use special alter hook, to impact the decision of language switching.
Comment #4
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedComment #5
wulff CreditAttribution: wulff as a volunteer commentedThe patch looks good!
I'll commit it when I'm back from vacation.
Comment #6
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedHi wulff! Are you still on vacation? :)
Comment #8
stefan.r CreditAttribution: stefan.r commentedCommitted and pushed to 7.x-1.x (with some small coding standards fixes), thanks!