Commit 5699e50d authored by RoSk0's avatar RoSk0

Added message when no reports registered.

parent 387f044f
......@@ -24,7 +24,7 @@ function crm_core_report_permission() {
return array(
'view crm report index' => array(
'title' => t('View CRM Core report index'),
'description' => t('Use dashboard.'),
'description' => t('View CRM Core report index page.'),
),
);
}
......
......@@ -5,7 +5,8 @@
*/
function crm_core_report_list(){
$reports = hook_crm_core_report_register();
return theme('crm_core_report_index', array('reports' => $reports));
return empty($reports)
? t('There are no reports to display at this time.') : theme('crm_core_report_index', array('reports' => $reports));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment