]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Emails/metadata/subpaneldefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Emails / metadata / subpaneldefs.php
1 <?php
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.
6  * 
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.
13  * 
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
17  * details.
18  * 
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
22  * 02110-1301 USA.
23  * 
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.
26  * 
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.
30  * 
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  ********************************************************************************/
37
38 /*********************************************************************************
39
40  * Description:
41  * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights
42  * Reserved. Contributor(s): ______________________________________..
43  *********************************************************************************/
44
45
46
47 $layout_defs['Emails'] = array(
48         // list of what Subpanels to show in the DetailView
49         'subpanel_setup' => array(
50                 'notes' => array(
51                         'order' => 5,
52                         'sort_order' => 'asc',
53                         'sort_by'       => 'name',
54                         'subpanel_name' => 'default',
55                         'get_subpanel_data' => 'notes',
56                         'title_key' => 'LBL_NOTES_SUBPANEL_TITLE',
57                         'module' => 'Notes',
58                         'top_buttons' => array(),
59                 ),
60         'accounts' => array(
61                         'order' => 10,
62                         'module' => 'Accounts',
63                         'sort_order' => 'asc',
64                         'sort_by' => 'name',
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')
72                         ),
73                 ),
74         'contacts' => array(
75                         'order' => 20,
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')
86                         ),
87                 ),
88         'opportunities' => array(
89                         'order' => 25,
90                         'module' => 'Opportunities',
91                         'sort_order' => 'asc',
92                         'sort_by' => 'name',
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')
100                         ),
101                 ),
102         'leads' => array(
103                         'order' => 30,
104                         'module' => 'Leads',
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')
114                         ),
115                 ),
116         'cases' => array(
117                         'order' => 40,
118                         'module' => 'Cases',
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')
128                         ),
129                 ),
130         'users' => array(
131                         'order' => 50,
132                         'module' => 'Users',
133                         'sort_order' => 'asc',
134                         'sort_by' => 'name',
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')
141                         ),
142                 ),
143         'bugs' => array(
144                         'order' => 60,
145                         'module' => 'Bugs',
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')
155                         ),
156                 ),
157
158
159         'project' => array(
160                         'order' => 80,
161                         'module' => 'Project',
162                         'sort_order' => 'asc',
163                         'sort_by' => 'name',
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')
171                         ),
172                 ),
173
174                 'meetings' => array(
175             'order' => 1,
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(),
183                 ),
184
185         ),
186 );