]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/modules/UpgradeWizard/SugarMerge/ce_metadata_files/custom/modules/Contacts/metadata/popupdefs.php
Added unit tests.
[Github/sugarcrm.git] / tests / modules / UpgradeWizard / SugarMerge / ce_metadata_files / custom / modules / Contacts / metadata / popupdefs.php
1 <?php
2 $popupMeta = array (
3     'moduleMain' => 'Contact',
4     'varName' => 'CONTACT',
5     'orderBy' => 'contacts.first_name, contacts.last_name',
6     'whereClauses' => array (
7   'first_name' => 'contacts.first_name',
8   'last_name' => 'contacts.last_name',
9   'account_name' => 'accounts.name',
10   'test_c' => 'contacts_cstm.test_c',
11   'test2_c' => 'contacts_cstm.test2_c',
12   'title' => 'contacts.title',
13   'lead_source' => 'contacts.lead_source',
14   'campaign_name' => 'contacts.campaign_name',
15   'assigned_user_id' => 'contacts.assigned_user_id',
16 ),
17     'searchInputs' => array (
18   0 => 'first_name',
19   1 => 'last_name',
20   2 => 'account_name',
21   3 => 'test_c',
22   4 => 'test2_c',
23   5 => 'title',
24   6 => 'lead_source',
25   7 => 'campaign_name',
26   8 => 'assigned_user_id',
27 ),
28     'create' => array (
29   'formBase' => 'ContactFormBase.php',
30   'formBaseClass' => 'ContactFormBase',
31   'getFormBodyParams' => 
32   array (
33     0 => '',
34     1 => '',
35     2 => 'ContactSave',
36   ),
37   'createButton' => 'Create Contact',
38 ),
39     'searchdefs' => array (
40   'first_name' => 
41   array (
42     'name' => 'first_name',
43     'width' => '10%',
44   ),
45   'test_c' => 
46   array (
47     'type' => 'varchar',
48     'label' => 'LBL_TEST',
49     'width' => '10%',
50     'name' => 'test_c',
51   ),
52   'test2_c' => 
53   array (
54     'type' => 'varchar',
55     'label' => 'LBL_TEST2',
56     'width' => '10%',
57     'name' => 'test2_c',
58   ),
59   'last_name' => 
60   array (
61     'name' => 'last_name',
62     'width' => '10%',
63   ),
64   'account_name' => 
65   array (
66     'name' => 'account_name',
67     'displayParams' => 
68     array (
69       'hideButtons' => 'true',
70       'size' => 30,
71       'class' => 'sqsEnabled sqsNoAutofill',
72     ),
73     'width' => '10%',
74   ),
75   'title' => 
76   array (
77     'name' => 'title',
78     'width' => '10%',
79   ),
80   'lead_source' => 
81   array (
82     'name' => 'lead_source',
83     'width' => '10%',
84   ),
85   'campaign_name' => 
86   array (
87     'name' => 'campaign_name',
88     'displayParams' => 
89     array (
90       'hideButtons' => 'true',
91       'size' => 30,
92       'class' => 'sqsEnabled sqsNoAutofill',
93     ),
94     'width' => '10%',
95   ),
96   'assigned_user_id' => 
97   array (
98     'name' => 'assigned_user_id',
99     'type' => 'enum',
100     'label' => 'LBL_ASSIGNED_TO',
101     'function' => 
102     array (
103       'name' => 'get_user_array',
104       'params' => 
105       array (
106         0 => false,
107       ),
108     ),
109     'width' => '10%',
110   ),
111 ),
112     'listviewdefs' => array (
113   'NAME' => 
114   array (
115     'width' => '20%',
116     'label' => 'LBL_LIST_NAME',
117     'link' => true,
118     'default' => true,
119     'related_fields' => 
120     array (
121       0 => 'first_name',
122       1 => 'last_name',
123       2 => 'salutation',
124       3 => 'account_name',
125       4 => 'account_id',
126     ),
127     'name' => 'name',
128   ),
129   'TEST_C' => 
130   array (
131     'type' => 'varchar',
132     'default' => true,
133     'label' => 'LBL_TEST',
134     'width' => '10%',
135   ),
136   'TEST2_C' => 
137   array (
138     'type' => 'varchar',
139     'default' => true,
140     'label' => 'LBL_TEST2',
141     'width' => '10%',
142   ),
143   'ACCOUNT_NAME' => 
144   array (
145     'width' => '25%',
146     'label' => 'LBL_LIST_ACCOUNT_NAME',
147     'module' => 'Accounts',
148     'id' => 'ACCOUNT_ID',
149     'default' => true,
150     'sortable' => true,
151     'ACLTag' => 'ACCOUNT',
152     'related_fields' => 
153     array (
154       0 => 'account_id',
155     ),
156     'name' => 'account_name',
157   ),
158   'TITLE' => 
159   array (
160     'width' => '15%',
161     'label' => 'LBL_LIST_TITLE',
162     'default' => true,
163     'name' => 'title',
164   ),
165   'LEAD_SOURCE' => 
166   array (
167     'width' => '15%',
168     'label' => 'LBL_LEAD_SOURCE',
169     'default' => true,
170     'name' => 'lead_source',
171   ),
172 ),
173 );