Remove Create button from a subpanel

Hello everyone,

I need to remove Create button from some modules subpanel.

Anyone can help me with a solution for this?

Thanks

You need to create an extended layoutdefs for the module and override the subpanel definitions for a given subpanel module:
Extended layoutdefs:
custom/Extension/modules/<Module>/Ext/Layoutdefs/<somescript>.php

$layout_defs['<Module>']['subpanel_setup']['<subpanel_module>']['top_buttons'] = array();

The code above remove all the subpanel’s buttons.

Remember to run Quick Repair and Rebuild after saving such script.

Regards