]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/custom/modules/Contacts/metadata/popupdefs.php
Release 6.2.0
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / ce_metadata_files / custom / modules / Contacts / metadata / popupdefs.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 $popupMeta = array (
39     'moduleMain' => 'Contact',
40     'varName' => 'CONTACT',
41     'orderBy' => 'contacts.first_name, contacts.last_name',
42     'whereClauses' => array (
43   'first_name' => 'contacts.first_name',
44   'last_name' => 'contacts.last_name',
45   'account_name' => 'accounts.name',
46   'test_c' => 'contacts_cstm.test_c',
47   'test2_c' => 'contacts_cstm.test2_c',
48   'title' => 'contacts.title',
49   'lead_source' => 'contacts.lead_source',
50   'campaign_name' => 'contacts.campaign_name',
51   'assigned_user_id' => 'contacts.assigned_user_id',
52 ),
53     'searchInputs' => array (
54   0 => 'first_name',
55   1 => 'last_name',
56   2 => 'account_name',
57   3 => 'test_c',
58   4 => 'test2_c',
59   5 => 'title',
60   6 => 'lead_source',
61   7 => 'campaign_name',
62   8 => 'assigned_user_id',
63 ),
64     'create' => array (
65   'formBase' => 'ContactFormBase.php',
66   'formBaseClass' => 'ContactFormBase',
67   'getFormBodyParams' => 
68   array (
69     0 => '',
70     1 => '',
71     2 => 'ContactSave',
72   ),
73   'createButton' => 'Create Contact',
74 ),
75     'searchdefs' => array (
76   'first_name' => 
77   array (
78     'name' => 'first_name',
79     'width' => '10%',
80   ),
81   'test_c' => 
82   array (
83     'type' => 'varchar',
84     'label' => 'LBL_TEST',
85     'width' => '10%',
86     'name' => 'test_c',
87   ),
88   'test2_c' => 
89   array (
90     'type' => 'varchar',
91     'label' => 'LBL_TEST2',
92     'width' => '10%',
93     'name' => 'test2_c',
94   ),
95   'last_name' => 
96   array (
97     'name' => 'last_name',
98     'width' => '10%',
99   ),
100   'account_name' => 
101   array (
102     'name' => 'account_name',
103     'displayParams' => 
104     array (
105       'hideButtons' => 'true',
106       'size' => 30,
107       'class' => 'sqsEnabled sqsNoAutofill',
108     ),
109     'width' => '10%',
110   ),
111   'title' => 
112   array (
113     'name' => 'title',
114     'width' => '10%',
115   ),
116   'lead_source' => 
117   array (
118     'name' => 'lead_source',
119     'width' => '10%',
120   ),
121   'campaign_name' => 
122   array (
123     'name' => 'campaign_name',
124     'displayParams' => 
125     array (
126       'hideButtons' => 'true',
127       'size' => 30,
128       'class' => 'sqsEnabled sqsNoAutofill',
129     ),
130     'width' => '10%',
131   ),
132   'assigned_user_id' => 
133   array (
134     'name' => 'assigned_user_id',
135     'type' => 'enum',
136     'label' => 'LBL_ASSIGNED_TO',
137     'function' => 
138     array (
139       'name' => 'get_user_array',
140       'params' => 
141       array (
142         0 => false,
143       ),
144     ),
145     'width' => '10%',
146   ),
147 ),
148     'listviewdefs' => array (
149   'NAME' => 
150   array (
151     'width' => '20%',
152     'label' => 'LBL_LIST_NAME',
153     'link' => true,
154     'default' => true,
155     'related_fields' => 
156     array (
157       0 => 'first_name',
158       1 => 'last_name',
159       2 => 'salutation',
160       3 => 'account_name',
161       4 => 'account_id',
162     ),
163     'name' => 'name',
164   ),
165   'TEST_C' => 
166   array (
167     'type' => 'varchar',
168     'default' => true,
169     'label' => 'LBL_TEST',
170     'width' => '10%',
171   ),
172   'TEST2_C' => 
173   array (
174     'type' => 'varchar',
175     'default' => true,
176     'label' => 'LBL_TEST2',
177     'width' => '10%',
178   ),
179   'ACCOUNT_NAME' => 
180   array (
181     'width' => '25%',
182     'label' => 'LBL_LIST_ACCOUNT_NAME',
183     'module' => 'Accounts',
184     'id' => 'ACCOUNT_ID',
185     'default' => true,
186     'sortable' => true,
187     'ACLTag' => 'ACCOUNT',
188     'related_fields' => 
189     array (
190       0 => 'account_id',
191     ),
192     'name' => 'account_name',
193   ),
194   'TITLE' => 
195   array (
196     'width' => '15%',
197     'label' => 'LBL_LIST_TITLE',
198     'default' => true,
199     'name' => 'title',
200   ),
201   'LEAD_SOURCE' => 
202   array (
203     'width' => '15%',
204     'label' => 'LBL_LEAD_SOURCE',
205     'default' => true,
206     'name' => 'lead_source',
207   ),
208 ),
209 );