Skip to content

Instantly share code, notes, and snippets.

@chadhutchins
Created November 10, 2014 17:05
Show Gist options
  • Save chadhutchins/bef6020d25ae241217ab to your computer and use it in GitHub Desktop.
Save chadhutchins/bef6020d25ae241217ab to your computer and use it in GitHub Desktop.
Add SugarChimp Activity as a Sugar Subpanel
<?php
$layout_defs['Contacts']['subpanel_setup']['sugarchimpactivity'] = array(
'top_buttons' => array(array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'SugarChimpActivity', 'mode' => 'MultiSelect'),),
'order' => 900,
'sort_by' => 'timestamp',
'sort_order' => 'desc',
'module' => 'SugarChimpActivity',
'refresh_page'=>1,
'subpanel_name' => 'default',
'get_subpanel_data' => 'sugarchimpactivity',
'add_subpanel_data' => 'sugarchimpactivity_id',
'title_key' => 'LBL_SUGARCHIMPACTIVITY_SUBPANEL_TITLE',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment