Apologies if this has already been covered, but I cannot find anything that exactly matches this situation.
I want to remove the “mass assign” section from the Opportunities view. I can successfully do this by, as mentioned elsewhere, commenting out the following lines from custom/modules/logic_hooks.php :
$hook_array"'after_ui_footer"][] = Array(10, ‘popup_onload’, ‘modules/SecurityGroups/AssignGroups.php’,‘AssignGroups’, ‘popup_onload’);
$hook_array[“after_ui_frame”][] = Array(20, ‘mass_assign’, ‘modules/SecurityGroups/AssignGroups.php’,‘AssignGroups’, ‘mass_assign’);
but obviously that affects all modules; so I thought I could leave the aforementioned file as it is and add the following lines to custom/modules/Opportunities/logic_hooks.php :
$hook_array[“after_ui_footer”] = Array();
// $hook_array[“after_ui_footer”][] = Array(10, ‘popup_onload’, ‘modules/SecurityGroups/AssignGroups.php’,‘AssignGroups’, ‘popup_onload’);
$hook_array[“after_ui_frame”] = Array();
// $hook_array[“after_ui_frame”][] = Array(20, ‘mass_assign’, ‘modules/SecurityGroups/AssignGroups.php’,‘AssignGroups’, ‘mass_assign’);
but that has no effect - the “mass assign” section still appears in all the modules, including Opportunities.
If I do the opposite thing, i.e. comment the relevant lines out of custom/modules/logic_hooks.php, but ADD them to custom/modules/Opportunities/logic_hooks.php, then it does what I expect, i.e. the “mass assign” section is globally removed except for the specific Opportunities module.
So it appears that I can ADD a module-specific logic hook to the global ones, but cannot disable global ones for a specific module.
Any advice, please?