Hide Contacts subpanel in Accounts module

Hi,

I want to hide Contacts Subpanel in Account module. i tried to add the following code under:

@custom\Extension\modules\Accounts\Ext\Layoutdefs\layoutdefs.ext.php

and also tried,

@custom\Extension\modules\Accounts\Ext\Layoutdefs\_overrideAccount_subpanel_accounts_contacts.php

The code:

unset($layout_defs['Accounts']['subpanel_setup']['accounts_contacts']);

But both location are not working to hide the contact subpanel.

Parents Reply Children