New menu items for each entity pivot report should be added to the database, instead of using hooks to alter the menu. These items should be added on extension installation, activated when the extension is enabled, deactivated when the extension is disabled and deleted on uninstallation.
Before
Items were being added to the menu using hooks, which required the caches to be deleted so the menu was rebuilt. There was no separator below Pivot Report menu item.
After
Menu items are added, enabled, disabled and deleted on extension installation, enabling, disabling and uninstallation, respectively. There is a separator below Pivot Report menu item.
Overview
New menu items for each entity pivot report should be added to the database, instead of using hooks to alter the menu. These items should be added on extension installation, activated when the extension is enabled, deactivated when the extension is disabled and deleted on uninstallation.
Before
Items were being added to the menu using hooks, which required the caches to be deleted so the menu was rebuilt. There was no separator below Pivot Report menu item.
After
Menu items are added, enabled, disabled and deleted on extension installation, enabling, disabling and uninstallation, respectively. There is a separator below Pivot Report menu item.