[horde] remove item from menu?

Jan Schneider jan at horde.org
Mon Mar 13 20:07:30 UTC 2017


Zitat von Michael J Rubinsky <mrubinsk at horde.org>:

> Quoting Mike Poznecki <poz_sa at yahoo.com>:
>
>> From: Michael J Rubinsky <mrubinsk at horde.org>
>> To: Mike Poznecki <poz_sa at yahoo.com>
>> Cc: horde at lists.horde.org
>> Sent: Monday, March 13, 2017 10:26 AM
>> Subject: Re: [horde] remove item from menu?
>>
>>
>> PLEASE do no top post.
>>
>> Quoting Mike Poznecki <poz_sa at yahoo.com>:
>>
>>> I don't want to disable composing of emails.  I just want to remove 
>>> it from the top menu.
>>
>> Then you will need to hack the source code, this is not configurable.
>>
>>
>>>
>>>       From: Michael J Rubinsky <mrubinsk at horde.org>
>>>   To: horde at lists.horde.org
>>>   Sent: Friday, March 10, 2017 11:57 AM
>>>   Subject: Re: [horde] remove item from menu?
>>>
>>>
>>> Quoting Mike Poznecki <poz_sa at yahoo.com>:
>>>
>>>> Hi, how can I remove "New Message" from the "Mail" menu list?
>>>
>>> Use the disable_compose hook.
>>>
>>>> --
>>>> Horde mailing list
>>>> Frequently Asked Questions: http://horde.org/faq/
>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>
>>>
>>>
>>> --
>>> mike
>>> The Horde Project
>>> http://www.horde.org
>>> https://www.facebook.com/hordeproject
>>> https://www.twitter.com/hordeproject
>>>
>>> --
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
>>
>>
>> --
>> mike
>> The Horde Project
>> http://www.horde.org
>> https://www.facebook.com/hordeproject
>> https://www.twitter.com/hordeproject
>>
>> Thanks, any idea on where I should look at making the hack?  I've  
>> been looking at topbar.js and Menu.php but am not sure what or  
>> where to change.
>
>
> Search the source code for 'disable_compose'. This will show you  
> where the hook is called - which is also where it is determine if  
> the link is added. One of the search results will be for the top menu.

You can also disable the complete sub menu by disabling the imp-menu  
component in config/registry.local.php.

The individual elements are added in topbarCreate() in  
imp/lib/Application.php.

-- 
Jan Schneider
The Horde Project
https://www.horde.org/



More information about the horde mailing list