]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/custom/modules/Contacts/metadata/listviewdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / ce_metadata_files / custom / modules / Contacts / metadata / listviewdefs.php
1 <?php
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37  
38 $listViewDefs ['Contacts'] = 
39 array (
40   'NAME' => 
41   array (
42     'width' => '20%',
43     'label' => 'LBL_LIST_NAME',
44     'link' => true,
45     'contextMenu' => 
46     array (
47       'objectType' => 'sugarPerson',
48       'metaData' => 
49       array (
50         'contact_id' => '{$ID}',
51         'module' => 'Contacts',
52         'return_action' => 'ListView',
53         'contact_name' => '{$FULL_NAME}',
54         'parent_id' => '{$ACCOUNT_ID}',
55         'parent_name' => '{$ACCOUNT_NAME}',
56         'return_module' => 'Contacts',
57         'parent_type' => 'Account',
58         'notes_parent_type' => 'Account',
59       ),
60     ),
61     'orderBy' => 'name',
62     'default' => true,
63     'related_fields' => 
64     array (
65       0 => 'first_name',
66       1 => 'last_name',
67       2 => 'salutation',
68       3 => 'account_name',
69       4 => 'account_id',
70     ),
71   ),
72   'TEST_C' => 
73   array (
74     'type' => 'varchar',
75     'default' => true,
76     'label' => 'LBL_TEST',
77     'width' => '10%',
78   ),
79   'TEST2_C' => 
80   array (
81     'type' => 'varchar',
82     'default' => true,
83     'label' => 'LBL_TEST2',
84     'width' => '10%',
85   ),
86   'TITLE' => 
87   array (
88     'width' => '15%',
89     'label' => 'LBL_LIST_TITLE',
90     'default' => true,
91   ),
92   'ACCOUNT_NAME' => 
93   array (
94     'width' => '34%',
95     'label' => 'LBL_LIST_ACCOUNT_NAME',
96     'module' => 'Accounts',
97     'id' => 'ACCOUNT_ID',
98     'link' => true,
99     'contextMenu' => 
100     array (
101       'objectType' => 'sugarAccount',
102       'metaData' => 
103       array (
104         'return_module' => 'Contacts',
105         'return_action' => 'ListView',
106         'module' => 'Accounts',
107         'parent_id' => '{$ACCOUNT_ID}',
108         'parent_name' => '{$ACCOUNT_NAME}',
109         'account_id' => '{$ACCOUNT_ID}',
110         'account_name' => '{$ACCOUNT_NAME}',
111       ),
112     ),
113     'default' => true,
114     'sortable' => true,
115     'ACLTag' => 'ACCOUNT',
116     'related_fields' => 
117     array (
118       0 => 'account_id',
119     ),
120   ),
121   'EMAIL1' => 
122   array (
123     'width' => '15%',
124     'label' => 'LBL_LIST_EMAIL_ADDRESS',
125     'sortable' => false,
126     'link' => true,
127     'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
128     'default' => true,
129   ),
130   'PHONE_WORK' => 
131   array (
132     'width' => '15%',
133     'label' => 'LBL_OFFICE_PHONE',
134     'default' => true,
135   ),
136   'ASSIGNED_USER_NAME' => 
137   array (
138     'width' => '10%',
139     'label' => 'LBL_LIST_ASSIGNED_USER',
140     'default' => true,
141   ),
142   'DEPARTMENT' => 
143   array (
144     'width' => '10%',
145     'label' => 'LBL_DEPARTMENT',
146     'default' => false,
147   ),
148   'DO_NOT_CALL' => 
149   array (
150     'width' => '10%',
151     'label' => 'LBL_DO_NOT_CALL',
152     'default' => false,
153   ),
154   'PHONE_HOME' => 
155   array (
156     'width' => '10%',
157     'label' => 'LBL_HOME_PHONE',
158     'default' => false,
159   ),
160   'PHONE_MOBILE' => 
161   array (
162     'width' => '10%',
163     'label' => 'LBL_MOBILE_PHONE',
164     'default' => false,
165   ),
166   'PHONE_OTHER' => 
167   array (
168     'width' => '10%',
169     'label' => 'LBL_OTHER_PHONE',
170     'default' => false,
171   ),
172   'PHONE_FAX' => 
173   array (
174     'width' => '10%',
175     'label' => 'LBL_FAX_PHONE',
176     'default' => false,
177   ),
178   'EMAIL2' => 
179   array (
180     'width' => '15%',
181     'label' => 'LBL_LIST_EMAIL_ADDRESS',
182     'sortable' => false,
183     'customCode' => '{$EMAIL2_LINK}{$EMAIL2}</a>',
184     'default' => false,
185   ),
186   'PRIMARY_ADDRESS_STREET' => 
187   array (
188     'width' => '10%',
189     'label' => 'LBL_PRIMARY_ADDRESS_STREET',
190     'default' => false,
191   ),
192   'PRIMARY_ADDRESS_CITY' => 
193   array (
194     'width' => '10%',
195     'label' => 'LBL_PRIMARY_ADDRESS_CITY',
196     'default' => false,
197   ),
198   'PRIMARY_ADDRESS_STATE' => 
199   array (
200     'width' => '10%',
201     'label' => 'LBL_PRIMARY_ADDRESS_STATE',
202     'default' => false,
203   ),
204   'PRIMARY_ADDRESS_POSTALCODE' => 
205   array (
206     'width' => '10%',
207     'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE',
208     'default' => false,
209   ),
210   'ALT_ADDRESS_COUNTRY' => 
211   array (
212     'width' => '10%',
213     'label' => 'LBL_ALT_ADDRESS_COUNTRY',
214     'default' => false,
215   ),
216   'ALT_ADDRESS_STREET' => 
217   array (
218     'width' => '10%',
219     'label' => 'LBL_ALT_ADDRESS_STREET',
220     'default' => false,
221   ),
222   'ALT_ADDRESS_CITY' => 
223   array (
224     'width' => '10%',
225     'label' => 'LBL_ALT_ADDRESS_CITY',
226     'default' => false,
227   ),
228   'ALT_ADDRESS_STATE' => 
229   array (
230     'width' => '10%',
231     'label' => 'LBL_ALT_ADDRESS_STATE',
232     'default' => false,
233   ),
234   'ALT_ADDRESS_POSTALCODE' => 
235   array (
236     'width' => '10%',
237     'label' => 'LBL_ALT_ADDRESS_POSTALCODE',
238     'default' => false,
239   ),
240   'DATE_ENTERED' => 
241   array (
242     'width' => '10%',
243     'label' => 'LBL_DATE_ENTERED',
244     'default' => false,
245   ),
246   'CREATED_BY_NAME' => 
247   array (
248     'width' => '10%',
249     'label' => 'LBL_CREATED',
250     'default' => false,
251   ),
252   'MODIFIED_BY_NAME' => 
253   array (
254     'width' => '10%',
255     'label' => 'LBL_MODIFIED',
256     'default' => false,
257   ),
258 );
259 ?>