Want to Hide Subpanel from Module Permanently ?
Goto : sugarcrm/custom/Extension/modules/Leads/Ext//Layoutdefs/
see for the layoutdefs.ext.php
if not than create.
( e.g. hide champaign subpanel )
edit that file and add line:
unset($layout_defs['Leads']['subpanel_setup']['campaigns']);
Than repair and rebult.
Note: You need to create the folders and files if they doesn´t exist.
If you want that panel than do vice-versa
For Sugarcrm 6.4.X or 6.5.X TRY THIS
Goto : sugarcrm/custom/Extension/modules/Leads/Ext//Layoutdefs/
hide_campaigns_subpanel.php
edit that file and add line:
make file like _override_hide_campaigns_subpanel.php