Skip to content

Instantly share code, notes, and snippets.

@mmarum-sugarcrm
Last active August 29, 2015 14:24
Show Gist options
  • Save mmarum-sugarcrm/40f3917c4d2a940490c9 to your computer and use it in GitHub Desktop.
Save mmarum-sugarcrm/40f3917c4d2a940490c9 to your computer and use it in GitHub Desktop.
Case Count by Status Dashlet Metadata
<?php
/**
* Metadata for the Case Count by Status example dashlet view
*
* This dashlet is only allowed to appear on the Case module's list view
* which is also known as the 'records' layout.
*/
$viewdefs['base']['view']['case-count-by-status'] = array(
'dashlets' => array(
array(
//Display label for this dashlet
'label' => 'LBL_CASE_COUNT_BY_STATUS',
//Description label for this Dashlet
'description' => 'LBL_CASE_COUNT_BY_STATUS_DESCRIPTION',
'config' => array(
),
'preview' => array(
),
//Filter array decides where this dashlet is allowed to appear
'filter' => array(
//Modules where this dashlet can appear
'module' => array(
'Cases',
),
//Views where this dashlet can appear
'view' => array(
'records',
)
)
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment