Upgrade-Safe way to hide subpanels (part 2)

Dear suite people!

I put my question at the end of an earlier version of the above mentioned thread already, but somehow it disappeared and I did not receive a response. :frowning:

In the earlier thread, Andy mentioned the following:

[/color]

This is exactly what would solve my problem, :cheer: but unfortunately I am not a PHP professional and I don’t get it to work. :frowning:

I want to remove the “Members Organisation” subpanel from the “Accounts” module.

So according to the instructions above, I created an empty file called “custom.php” and put the following line in it:

[i]unset($layout_defs['Accounts']['subpanel_setup']['accounts']);[/i]

Then I copied the file to the path mentioned above.

I did a repair and rebuilt, but nothing changed. - I thought, that the default sub panels would now be configurable.
I thought, that I would be able to remove any subpanel from the “Accounts” module now, but I’m not.

What do I have to modify/ change, to make my requirements happen? - Any hint is highly appreciated! Thank you very very much! :slight_smile:

I understand you doesn’t need to enter these , because that’s invalid code in PHP.

Also, for running php, you need to open php tags in the file. You can do this by this way:

<?php your_code ?>

Dear Maqui,

thank you! The “i” in brackets? That might have been created by copy and paste. It is actualy not part of the php file. :wink:
OK, I’ll add the start and end qualifiers and give it another try. :slight_smile: