Closed (fixed)
Project:
Localization client
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2010 at 07:57 UTC
Updated:
12 Sep 2013 at 16:31 UTC
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 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 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 commentedRecommended solution, add a variable named
l10n_disabled_pathscheck that thecurrent_path()is not in it usingdrupal_match_path()Need a UI too.
Comment #8
SebCorbin commentedComment #9
SebCorbin commented