function crm_core_report_list in CRM Core 8
Same name and namespace in other branches
- 8.2 modules/crm_core_report/pages/crm_core_report.pages.inc \crm_core_report_list()
- 7 modules/crm_core_report/pages/crm_core_report.pages.inc \crm_core_report_list()
Provides a listing of all reports registered for CRM Core.
1 string reference to 'crm_core_report_list'
- crm_core_report_menu in modules/
crm_core_report/ crm_core_report.module - Implements hook_menu().
File
- modules/
crm_core_report/ pages/ crm_core_report.pages.inc, line 11 - Reports listing page.
Code
function crm_core_report_list() {
drupal_set_title(t('Reports'));
drupal_set_breadcrumb([
l(t('Home'), '<front>'),
l(t('CRM Core'), 'crm-core'),
l(t('Reports'), 'crm-core/reports'),
]);
$reports = hook_crm_core_report_register();
return empty($reports) ? t('There are no reports to display at this time.') : theme('crm_core_report_index', [
'reports' => $reports,
]);
}