CiviCRM extension that adds a custom tab on the contact view page.
- Create extension using civix generate:module
- Generate a page (civicrm/custom-callback) for ajax callback using civix generate:page
- Add a custom tab to Contact View Page using hook_civicrm_tabs in myextension.php
- Add custom permission "access Custom Contribution Tab" using hook_civicrm_permission in myextension.php
- Use CiviCRM API in class CRM_Myextension_Page_CustomCallback to fetch contributions given the url parameters.
- Pass page variables to smarty template for rendering.
- Addition of resources and code needed to represent the fetched data in the for of a chart.