function hook_crm_core_report_register in CRM Core 8
Same name and namespace in other branches
- 8.2 modules/crm_core_report/crm_core_report.module \hook_crm_core_report_register()
- 7 crm_core.api.php \hook_crm_core_report_register()
Constructs a list of registered reports and widgets for CRM Core.
Reports registered via this hook will be listed on the reports page and should include appropriate access controls, unless you want everyone with access to the main reports page to see them.
1 call to hook_crm_core_report_register()
- crm_core_report_list in modules/
crm_core_report/ pages/ crm_core_report.pages.inc - Provides a listing of all reports registered for CRM Core.
File
- modules/
crm_core_report/ crm_core_report.module, line 100 - Provides a simple reporting interface for CRM Core and related modules.
Code
function hook_crm_core_report_register() {
$reports = [];
foreach (module_implements('crm_core_report_register') as $module) {
$function = $module . '_crm_core_report_register';
$reports = array_merge($reports, $function());
}
return $reports;
}