]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/600/modules/Contacts/metadata/listviewdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / ce_metadata_files / 600 / modules / Contacts / metadata / listviewdefs.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM is a customer relationship management program developed by
5  * SugarCRM, Inc. Copyright (C) 2004-2011 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 $listViewDefs['Contacts'] = array(
42         'NAME' => array(
43                 'width' => '20%',               
44                 'label' => 'LBL_LIST_NAME', 
45                 'link' => true,
46         'contextMenu' => array('objectType' => 'sugarPerson', 
47                                'metaData' => array('contact_id' => '{$ID}', 
48                                                    'module' => 'Contacts',
49                                                    'return_action' => 'ListView', 
50                                                    'contact_name' => '{$FULL_NAME}', 
51                                                    'parent_id' => '{$ACCOUNT_ID}',
52                                                    'parent_name' => '{$ACCOUNT_NAME}',
53                                                    'return_module' => 'Contacts', 
54                                                    'return_action' => 'ListView', 
55                                                    'parent_type' => 'Account', 
56                                                    'notes_parent_type' => 'Account')
57                               ),
58                 'orderBy' => 'name',
59         'default' => true,
60         'related_fields' => array('first_name', 'last_name', 'salutation', 'account_name', 'account_id'),
61                 ), 
62         'TITLE' => array(
63                 'width' => '15%', 
64                 'label' => 'LBL_LIST_TITLE',
65         'default' => true), 
66         'ACCOUNT_NAME' => array(
67                 'width' => '34%', 
68                 'label' => 'LBL_LIST_ACCOUNT_NAME', 
69                 'module' => 'Accounts',
70                 'id' => 'ACCOUNT_ID',
71                 'link' => true,
72         'contextMenu' => array('objectType' => 'sugarAccount', 
73                                'metaData' => array('return_module' => 'Contacts', 
74                                                    'return_action' => 'ListView', 
75                                                    'module' => 'Accounts',
76                                                    'return_action' => 'ListView', 
77                                                    'parent_id' => '{$ACCOUNT_ID}', 
78                                                    'parent_name' => '{$ACCOUNT_NAME}', 
79                                                    'account_id' => '{$ACCOUNT_ID}', 
80                                                    'account_name' => '{$ACCOUNT_NAME}'),
81                               ),
82         'default' => true,
83         'sortable'=> true,
84         'ACLTag' => 'ACCOUNT',
85         'related_fields' => array('account_id')),
86         'EMAIL1' => array(
87                 'width' => '15%', 
88                 'label' => 'LBL_LIST_EMAIL_ADDRESS',
89                 'sortable' => false,
90                 'link' => true,
91                 'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
92         'default' => true
93                 ),  
94         'PHONE_WORK' => array(
95                 'width' => '15%', 
96                 'label' => 'LBL_OFFICE_PHONE',
97         'default' => true),
98     'DEPARTMENT' => array(
99         'width' => '10', 
100         'label' => 'LBL_DEPARTMENT'),
101     'DO_NOT_CALL' => array(
102         'width' => '10', 
103         'label' => 'LBL_DO_NOT_CALL'),
104     'PHONE_HOME' => array(
105         'width' => '10', 
106         'label' => 'LBL_HOME_PHONE'),
107     'PHONE_MOBILE' => array(
108         'width' => '10', 
109         'label' => 'LBL_MOBILE_PHONE'),
110     'PHONE_OTHER' => array(
111         'width' => '10', 
112         'label' => 'LBL_OTHER_PHONE'),
113     'PHONE_FAX' => array(
114         'width' => '10', 
115         'label' => 'LBL_FAX_PHONE'),
116     'EMAIL2' => array(
117         'width' => '15', 
118         'label' => 'LBL_LIST_EMAIL_ADDRESS',
119         'sortable' => false,
120         'customCode' => '{$EMAIL2_LINK}{$EMAIL2}</a>'),  
121     'EMAIL_OPT_OUT' => array(
122         'width' => '10', 
123         
124         'label' => 'LBL_EMAIL_OPT_OUT'),
125     'PRIMARY_ADDRESS_STREET' => array(
126         'width' => '10', 
127         'label' => 'LBL_PRIMARY_ADDRESS_STREET'),
128     'PRIMARY_ADDRESS_CITY' => array(
129         'width' => '10', 
130         'label' => 'LBL_PRIMARY_ADDRESS_CITY'),
131     'PRIMARY_ADDRESS_STATE' => array(
132         'width' => '10', 
133         'label' => 'LBL_PRIMARY_ADDRESS_STATE'),
134     'PRIMARY_ADDRESS_POSTALCODE' => array(
135         'width' => '10', 
136         'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE'),
137     'ALT_ADDRESS_COUNTRY' => array(
138         'width' => '10', 
139         'label' => 'LBL_ALT_ADDRESS_COUNTRY'),
140     'ALT_ADDRESS_STREET' => array(
141         'width' => '10', 
142         'label' => 'LBL_ALT_ADDRESS_STREET'),
143     'ALT_ADDRESS_CITY' => array(
144         'width' => '10', 
145         'label' => 'LBL_ALT_ADDRESS_CITY'),
146     'ALT_ADDRESS_STATE' => array(
147         'width' => '10', 
148         'label' => 'LBL_ALT_ADDRESS_STATE'),
149     'ALT_ADDRESS_POSTALCODE' => array(
150         'width' => '10', 
151         'label' => 'LBL_ALT_ADDRESS_POSTALCODE'),
152     'ALT_ADDRESS_COUNTRY' => array(
153         'width' => '10', 
154         'label' => 'LBL_ALT_ADDRESS_COUNTRY'),
155     'DATE_ENTERED' => array(
156         'width' => '10', 
157         'label' => 'LBL_DATE_ENTERED'),
158     'CREATED_BY_NAME' => array(
159         'width' => '10', 
160         'label' => 'LBL_CREATED'),
161     'ASSIGNED_USER_NAME' => array(
162         'width' => '10', 
163         'label' => 'LBL_LIST_ASSIGNED_USER',
164         'default' => true),
165     'MODIFIED_BY_NAME' => array(
166         'width' => '10', 
167         'label' => 'LBL_MODIFIED')
168 );
169 ?>