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.
We have client reports that the l10n_client shows up in the dialog and destroys wysiwyg_imageupload.
Sure we told them to deactivate the l10n_client (at least temporary) to make the dialog work again. But they still consider this a system bug.
Same as you disable admin_menu in the dialog case - isn't it possible to deactivate the l10n_client?
Comments
Comment #1
EugenMayer CreditAttribution: EugenMayer commentedHi Miro,
how could we. Can i utilize a similar hook like exit / shutdown?
Comment #2
miro_dietikerIt seems to me l10n_client doesn't allow to deactivate it in certain conditions like admin_menu does.
Gabor is there a way to do so?
In admin_menu.module there's a function admin_menu_suppress(). This gets checked right before outputting the markup.
Comment #3
Gábor HojtsyYeah, this function governs whether you see the UI or not:
We can add an API function to let you disable it from another module if needed.
Comment #4
EugenMayer CreditAttribution: EugenMayer commentedThat would be perfect Gabor. It will be used by other libs like the modal-frame API also, so its generally needed. Thanks
Comment #5
Gábor HojtsyPatch welcome. Let's have it in D7 and D6 too.
Comment #6
miro_dietikerIf we do it the admin_menu way, it would be:
Is this the way to go?
I could provide a patch then.
BTW: The function has a $account argument that is never used. I think we should reduce it to global $user case only to simplify.
Comment #7
SebCorbin CreditAttribution: SebCorbin commentedRecommended solution, add a variable named
l10n_disabled_paths
check that thecurrent_path()
is not in it usingdrupal_match_path()
Need a UI too.
Comment #8
SebCorbin CreditAttribution: SebCorbin commentedComment #9
SebCorbin CreditAttribution: SebCorbin commented