How do I remove any User subpanel ordering once a User has Dragged/Dropped subpanels to change thier order in a module?
I eventually figured out how to make a global change to the subpanel order in a module’s Detailview by creating a file in (Contacts used as an example)
custom/Extension/modules/Contacts/Ext/Layoutdefs/resequence_subpanels.php
and in that file, entering the new order for the subpanels with
<?php
// Resequence the subpanels for the Contacts Detailview
$layout_defs['Contacts']['subpanel_setup']['campaigns']['order'] = '20';
$layout_defs['Contacts']['subpanel_setup']['fp_events_contacts']['order'] = '30';
$layout_defs['Contacts']['subpanel_setup']['history']['order'] = '40';
$layout_defs['Contacts']['subpanel_setup']['activities']['order'] = '50';
$layout_defs['Contacts']['subpanel_setup']['cases']['order'] = '60';
$layout_defs['Contacts']['subpanel_setup']['documents']['order'] = '70';
$layout_defs['Contacts']['subpanel_setup']['leads']['order'] = '80';
$layout_defs['Contacts']['subpanel_setup']['securitygroups']['order'] = '900';
The problem is, BEFORE doing that, while I was poking around trying to figure out the best way to do this, I manually re-ordered the Contacts subpanels for a user.
And now, the global changes shown above work for others but NOT for the user where I made the manual change via drag and drop.
I cannot figure out how to undo the manual subpanel ordering so that the global subpanel ordering will work for all, including the user for whom the manual subpanel ordering was done.
I looked in the MySQL database in the “user_preferences” table but could not see anything that looked like it was holding the user changes for subpanel ordering.
I have (now) checked the Admin → System Settings → User Interface : Prevent user customizable subpanel layout so Users will not now be able to manually override the global setting, but I am left with the one user who already made the manual change via drag and drop.
Does anyone know how to undo the manual user subpanel ordering - done via drag and drop - so the global subpanel ordering setup will work for that user?