]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Leads/metadata/popupdefs.php
Release 6.2.0
[Github/sugarcrm.git] / modules / Leads / metadata / popupdefs.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-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 $popupMeta = array (
40     'moduleMain' => 'Lead',
41     'varName' => 'LEAD',
42     'orderBy' => 'last_name, first_name',
43     'whereClauses' => array (
44                 'first_name' => 'leads.first_name',
45                 'last_name' => 'leads.last_name',
46                 'lead_source' => 'leads.lead_source',
47                 'status' => 'leads.status',
48                 'account_name' => 'leads.account_name',
49                 'assigned_user_id' => 'leads.assigned_user_id',
50         ),
51     'searchInputs' => array (
52           0 => 'first_name',
53           1 => 'last_name',
54           2 => 'lead_source',
55           3 => 'status',
56           4 => 'account_name',
57           5 => 'assigned_user_id',
58         ),
59     'searchdefs' => array (
60           'first_name' => 
61           array (
62             'name' => 'first_name',
63             'width' => '10%',
64           ),
65           'last_name' => 
66           array (
67             'name' => 'last_name',
68             'width' => '10%',
69           ),
70           'account_name' => 
71           array (
72             'type' => 'varchar',
73             'label' => 'LBL_ACCOUNT_NAME',
74             'width' => '10%',
75             'name' => 'account_name',
76           ),
77           'lead_source' => 
78           array (
79             'name' => 'lead_source',
80             'width' => '10%',
81           ),
82           'status' => 
83           array (
84             'name' => 'status',
85             'width' => '10%',
86           ),
87           'assigned_user_id' => 
88           array (
89             'name' => 'assigned_user_id',
90             'type' => 'enum',
91             'label' => 'LBL_ASSIGNED_TO',
92             'function' => 
93             array (
94               'name' => 'get_user_array',
95               'params' => 
96               array (
97                 0 => false,
98               ),
99             ),
100             'width' => '10%',
101           ),
102         ),
103     'listviewdefs' => array (
104           'NAME' => 
105           array (
106             'width' => '30%',
107             'label' => 'LBL_LIST_NAME',
108             'link' => true,
109             'default' => true,
110             'related_fields' => 
111             array (
112               0 => 'first_name',
113               1 => 'last_name',
114               2 => 'salutation',
115             ),
116             'name' => 'name',
117           ),
118           'ACCOUNT_NAME' => 
119           array (
120             'type' => 'varchar',
121             'label' => 'LBL_ACCOUNT_NAME',
122             'width' => '10%',
123             'default' => true,
124             'name' => 'account_name',
125           ),
126           'STATUS' => 
127           array (
128             'width' => '10%',
129             'label' => 'LBL_LIST_STATUS',
130             'default' => true,
131             'name' => 'status',
132           ),
133           'LEAD_SOURCE' => 
134           array (
135             'width' => '10%',
136             'label' => 'LBL_LEAD_SOURCE',
137             'default' => true,
138             'name' => 'lead_source',
139           ),
140           'ASSIGNED_USER_NAME' => 
141           array (
142             'width' => '10%',
143             'label' => 'LBL_LIST_ASSIGNED_USER',
144             'default' => true,
145             'name' => 'assigned_user_name',
146           ),
147         ),
148 );