2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
38 /*********************************************************************************
41 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
42 * Reserved. Contributor(s): ______________________________________..
43 *********************************************************************************/
47 $layout_defs['Emails'] = array(
48 // list of what Subpanels to show in the DetailView
49 'subpanel_setup' => array(
52 'sort_order' => 'asc',
54 'subpanel_name' => 'default',
55 'get_subpanel_data' => 'notes',
56 'title_key' => 'LBL_NOTES_SUBPANEL_TITLE',
58 'top_buttons' => array(),
62 'module' => 'Accounts',
63 'sort_order' => 'asc',
65 'subpanel_name' => 'ForEmails',
66 'get_subpanel_data' => 'accounts',
67 'add_subpanel_data' => 'account_id',
68 'title_key' => 'LBL_ACCOUNTS_SUBPANEL_TITLE',
69 'top_buttons' => array(
70 array('widget_class' => 'SubPanelTopCreateButton'),
71 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
76 'module' => 'Contacts',
77 'sort_order' => 'asc',
78 'sort_by' => 'last_name, first_name',
79 'subpanel_name' => 'ForEmails',
80 'get_subpanel_data' => 'contacts',
81 'add_subpanel_data' => 'contact_id',
82 'title_key' => 'LBL_CONTACTS_SUBPANEL_TITLE',
83 'top_buttons' => array(
84 array('widget_class' => 'SubPanelTopCreateButton'),
85 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
88 'opportunities' => array(
90 'module' => 'Opportunities',
91 'sort_order' => 'asc',
93 'subpanel_name' => 'ForEmails',
94 'get_subpanel_data' => 'opportunities',
95 'add_subpanel_data' => 'opportunity_id',
96 'title_key' => 'LBL_OPPORTUNITY_SUBPANEL_TITLE',
97 'top_buttons' => array(
98 array('widget_class' => 'SubPanelTopCreateButton'),
99 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
105 'sort_order' => 'asc',
106 'sort_by' => 'last_name, first_name',
107 'subpanel_name' => 'ForEmails',
108 'get_subpanel_data' => 'leads',
109 'add_subpanel_data' => 'lead_id',
110 'title_key' => 'LBL_LEADS_SUBPANEL_TITLE',
111 'top_buttons' => array(
112 array('widget_class' => 'SubPanelTopCreateButton'),
113 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
119 'sort_order' => 'desc',
120 'sort_by' => 'case_number',
121 'subpanel_name' => 'ForEmails',
122 'get_subpanel_data' => 'cases',
123 'add_subpanel_data' => 'case_id',
124 'title_key' => 'LBL_CASES_SUBPANEL_TITLE',
125 'top_buttons' => array(
126 array('widget_class' => 'SubPanelTopCreateButton'),
127 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
133 'sort_order' => 'asc',
135 'subpanel_name' => 'ForEmails',
136 'get_subpanel_data' => 'users',
137 'add_subpanel_data' => 'user_id',
138 'title_key' => 'LBL_USERS_SUBPANEL_TITLE',
139 'top_buttons' => array(
140 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
146 'sort_order' => 'desc',
147 'sort_by' => 'bug_number',
148 'subpanel_name' => 'ForEmails',
149 'get_subpanel_data' => 'bugs',
150 'add_subpanel_data' => 'bug_id',
151 'title_key' => 'LBL_BUGS_SUBPANEL_TITLE',
152 'top_buttons' => array(
153 array('widget_class' => 'SubPanelTopCreateButton'),
154 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
161 'module' => 'Project',
162 'sort_order' => 'asc',
164 'subpanel_name' => 'ForEmails',
165 'get_subpanel_data' => 'project',
166 'add_subpanel_data' => 'project_id',
167 'title_key' => 'LBL_PROJECT_SUBPANEL_TITLE',
168 'top_buttons' => array(
169 array('widget_class' => 'SubPanelTopCreateButton'),
170 array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect')
176 'sort_order' => 'desc',
177 'sort_by' => 'date_start',
178 'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE',
179 'module' => 'Meetings',
180 'subpanel_name' => 'ForActivities',
181 'get_subpanel_data' => 'meetings',
182 'top_buttons' => array(),