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.
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.
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
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
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.
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.
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 ********************************************************************************/
41 $listViewDefs['Contacts'] = array(
44 'label' => 'LBL_LIST_NAME',
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')
60 'related_fields' => array('first_name', 'last_name', 'salutation', 'account_name', 'account_id'),
64 'label' => 'LBL_LIST_TITLE',
66 'ACCOUNT_NAME' => array(
68 'label' => 'LBL_LIST_ACCOUNT_NAME',
69 'module' => 'Accounts',
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}'),
84 'ACLTag' => 'ACCOUNT',
85 'related_fields' => array('account_id')),
88 'label' => 'LBL_LIST_EMAIL_ADDRESS',
91 'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
94 'PHONE_WORK' => array(
96 'label' => 'LBL_OFFICE_PHONE',
98 'DEPARTMENT' => array(
100 'label' => 'LBL_DEPARTMENT'),
101 'DO_NOT_CALL' => array(
103 'label' => 'LBL_DO_NOT_CALL'),
104 'PHONE_HOME' => array(
106 'label' => 'LBL_HOME_PHONE'),
107 'PHONE_MOBILE' => array(
109 'label' => 'LBL_MOBILE_PHONE'),
110 'PHONE_OTHER' => array(
112 'label' => 'LBL_OTHER_PHONE'),
113 'PHONE_FAX' => array(
115 'label' => 'LBL_FAX_PHONE'),
118 'label' => 'LBL_LIST_EMAIL_ADDRESS',
120 'customCode' => '{$EMAIL2_LINK}{$EMAIL2}</a>'),
121 'EMAIL_OPT_OUT' => array(
124 'label' => 'LBL_EMAIL_OPT_OUT'),
125 'PRIMARY_ADDRESS_STREET' => array(
127 'label' => 'LBL_PRIMARY_ADDRESS_STREET'),
128 'PRIMARY_ADDRESS_CITY' => array(
130 'label' => 'LBL_PRIMARY_ADDRESS_CITY'),
131 'PRIMARY_ADDRESS_STATE' => array(
133 'label' => 'LBL_PRIMARY_ADDRESS_STATE'),
134 'PRIMARY_ADDRESS_POSTALCODE' => array(
136 'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE'),
137 'ALT_ADDRESS_COUNTRY' => array(
139 'label' => 'LBL_ALT_ADDRESS_COUNTRY'),
140 'ALT_ADDRESS_STREET' => array(
142 'label' => 'LBL_ALT_ADDRESS_STREET'),
143 'ALT_ADDRESS_CITY' => array(
145 'label' => 'LBL_ALT_ADDRESS_CITY'),
146 'ALT_ADDRESS_STATE' => array(
148 'label' => 'LBL_ALT_ADDRESS_STATE'),
149 'ALT_ADDRESS_POSTALCODE' => array(
151 'label' => 'LBL_ALT_ADDRESS_POSTALCODE'),
152 'ALT_ADDRESS_COUNTRY' => array(
154 'label' => 'LBL_ALT_ADDRESS_COUNTRY'),
155 'CREATED_BY_NAME' => array(
157 'label' => 'LBL_CREATED'),
158 'ASSIGNED_USER_NAME' => array(
160 'label' => 'LBL_LIST_ASSIGNED_USER',
161 'module' => 'Employees',
162 'id' => 'ASSIGNED_USER_ID',
164 'MODIFIED_BY_NAME' => array(
166 'label' => 'LBL_MODIFIED'),
167 'SYNC_CONTACT' => array (
169 'label' => 'LBL_SYNC_CONTACT',
174 'DATE_ENTERED' => array(
176 'label' => 'LBL_DATE_ENTERED',