]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Leads/metadata/subpaneldefs.php
Release 6.5.0
[Github/sugarcrm.git] / modules / Leads / 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
41 $layout_defs['Leads'] = array(
42         // sets up which panels to show, in which order, and with what linked_fields
43         'subpanel_setup' => array(
44        'activities' => array(
45                         'order' => 20,
46                         'sort_order' => 'desc',
47                         'sort_by' => 'date_start',
48                         'title_key' => 'LBL_ACTIVITIES_SUBPANEL_TITLE',
49                         'type' => 'collection',
50                         'subpanel_name' => 'activities',   //this values is not associated with a physical file.
51                         'module'=>'Activities',
52
53                         'top_buttons' => array(
54                                 array('widget_class' => 'SubPanelTopCreateTaskButton'),
55                                 array('widget_class' => 'SubPanelTopScheduleMeetingButton'),
56                                 array('widget_class' => 'SubPanelTopScheduleCallButton'),
57                                 array('widget_class' => 'SubPanelTopComposeEmailButton'),
58                         ),
59
60                         'collection_list' => array(
61                                 'meetings' => array(
62                                         'module' => 'Meetings',
63                                         'subpanel_name' => 'ForActivities',
64                                         'get_subpanel_data' => 'meetings',
65                                 ),
66                                 'oldmeetings' => array(
67                                         'module' => 'Meetings',
68                                         'subpanel_name' => 'ForActivities',
69                                         'get_subpanel_data' => 'function:get_old_related_meetings',
70                                         'set_subpanel_data' => 'oldmeetings',
71                                         'generate_select'=>true,
72                                 ),
73                                 'tasks' => array(
74                                         'module' => 'Tasks',
75                                         'subpanel_name' => 'ForActivities',
76                                         'get_subpanel_data' => 'tasks',
77                                 ),
78                                 'calls' => array(
79                                         'module' => 'Calls',
80                                         'subpanel_name' => 'ForActivities',
81                                         'get_subpanel_data' => 'calls',
82                                 ),
83                 'oldcalls' => array(
84                                         'module' => 'Calls',
85                                         'subpanel_name' => 'ForActivities',
86                                         'get_subpanel_data' => 'function:get_old_related_calls',
87                                         'set_subpanel_data' => 'oldcalls',
88                                         'generate_select'=>true,
89                                 ),
90                         )
91                 ),
92         'history' => array(
93                         'order' => 30,
94                         'sort_order' => 'desc',
95                         'sort_by' => 'date_entered',
96                         'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
97                         'type' => 'collection',
98                         'subpanel_name' => 'history',   //this values is not associated with a physical file.
99                         'module'=>'History',
100
101                         'top_buttons' => array(
102                         array('widget_class' => 'SubPanelTopCreateNoteButton'),
103                         array('widget_class' => 'SubPanelTopArchiveEmailButton'),
104             array('widget_class' => 'SubPanelTopSummaryButton'),
105                         ),
106
107                         'collection_list' => array(
108                                 'meetings' => array(
109                                         'module' => 'Meetings',
110                                         'subpanel_name' => 'ForHistory',
111                                         'get_subpanel_data' => 'meetings',
112                                 ),
113                                 'oldmeetings' => array(
114                                         'module' => 'Meetings',
115                                         'subpanel_name' => 'ForHistory',
116                                         'get_subpanel_data' => 'function:get_old_related_meetings',
117                                         'generate_select'=>true,
118                                         'set_subpanel_data' => 'oldmeetings',
119                                 ),
120                                 'tasks' => array(
121                                         'module' => 'Tasks',
122                                         'subpanel_name' => 'ForHistory',
123                                         'get_subpanel_data' => 'tasks',
124                                 ),
125                                 'calls' => array(
126                                         'module' => 'Calls',
127                                         'subpanel_name' => 'ForHistory',
128                                         'get_subpanel_data' => 'calls',
129                                 ),
130                                 'oldcalls' => array(
131                                         'module' => 'Calls',
132                                         'subpanel_name' => 'ForHistory',
133                                         'get_subpanel_data' => 'function:get_old_related_calls',
134                                         'set_subpanel_data' => 'oldcalls',
135                                         'generate_select'=>true,
136                                 ),
137                                 'notes' => array(
138                                         'module' => 'Notes',
139                                         'subpanel_name' => 'ForHistory',
140                                         'get_subpanel_data' => 'notes',
141                                 ),
142                                 'emails' => array(
143                                         'module' => 'Emails',
144                                         'subpanel_name' => 'ForHistory',
145                                         'get_subpanel_data' => 'emails',
146                                 ),
147                                 'linkedemails' => array(
148                         'module' => 'Emails',
149                         'subpanel_name' => 'ForUnlinkedEmailHistory',
150                         'get_subpanel_data' => 'function:get_unlinked_email_query',
151                         'generate_select'=>true,
152                         'function_parameters' => array('return_as_array'=>'true'),
153                         ),
154                         )
155                 ),
156         'campaigns' => array(
157                         'order' => 40,
158                         'module' => 'CampaignLog',
159                         'sort_order' => 'desc',
160                         'sort_by' => 'activity_date',
161                         'get_subpanel_data'=>'campaigns',
162                         'subpanel_name' => 'ForTargets',
163                         'title_key' => 'LBL_CAMPAIGN_LIST_SUBPANEL_TITLE',
164                 ),
165     ),
166 );
167 ?>