Hide Contacts subpanel in Accounts module


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


and also tried,


The code:


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

  • Hi Jason,,

    this is upgradesafe coding..

    Subpanel layouts are defined originally within metadata, e.g. /modules/Accounts/metadata/subpaneldefs.php.

    These files hold the original, default layout of subpanels and the fields within them. They are overridden in custom Extension data, e.g. custom/Extension/modules/Accounts/Ext/Layoutdefs/accounts_cont.php.

    After a repair & rebuild, you’ll find the data from the arbitrarily named files are merged and placed in /custom/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php.



  • Hi Sohan & Mehul,

    The solutions are not working for me, but I found the solution: $layout_defs['Accounts']['subpanel_setup'][contacts] = array ();

    Thanks anyway!!

Reply Children