]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Leads/metadata/popupdefs.php
Release 6.5.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-2012 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           'email',
71           'account_name' => 
72           array (
73             'type' => 'varchar',
74             'label' => 'LBL_ACCOUNT_NAME',
75             'width' => '10%',
76             'name' => 'account_name',
77           ),
78           'lead_source' => 
79           array (
80             'name' => 'lead_source',
81             'width' => '10%',
82           ),
83           'status' => 
84           array (
85             'name' => 'status',
86             'width' => '10%',
87           ),
88           'assigned_user_id' => 
89           array (
90             'name' => 'assigned_user_id',
91             'type' => 'enum',
92             'label' => 'LBL_ASSIGNED_TO',
93             'function' => 
94             array (
95               'name' => 'get_user_array',
96               'params' => 
97               array (
98                 0 => false,
99               ),
100             ),
101             'width' => '10%',
102           ),
103         ),
104     'listviewdefs' => array (
105           'NAME' => 
106           array (
107             'width' => '30%',
108             'label' => 'LBL_LIST_NAME',
109             'link' => true,
110             'default' => true,
111             'related_fields' => 
112             array (
113               0 => 'first_name',
114               1 => 'last_name',
115               2 => 'salutation',
116             ),
117             'name' => 'name',
118           ),
119           'ACCOUNT_NAME' => 
120           array (
121             'type' => 'varchar',
122             'label' => 'LBL_ACCOUNT_NAME',
123             'width' => '10%',
124             'default' => true,
125             'name' => 'account_name',
126           ),
127           'STATUS' => 
128           array (
129             'width' => '10%',
130             'label' => 'LBL_LIST_STATUS',
131             'default' => true,
132             'name' => 'status',
133           ),
134           'LEAD_SOURCE' => 
135           array (
136             'width' => '10%',
137             'label' => 'LBL_LEAD_SOURCE',
138             'default' => true,
139             'name' => 'lead_source',
140           ),
141           'ASSIGNED_USER_NAME' => 
142           array (
143             'width' => '10%',
144             'label' => 'LBL_LIST_ASSIGNED_USER',
145             'default' => true,
146             'name' => 'assigned_user_name',
147           ),
148         ),
149 );