compucorp / uk.co.compucorp.civicrm.pivotreport

CiviCRM Pivot table reporting solution
Other
8 stars 13 forks source link

GS-88: Add Menu Items to Navigation DB Table Instead of Using Hooks #68

Closed MiyaNoctem closed 6 years ago

MiyaNoctem commented 6 years ago

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.

image

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.

image