2 /*********************************************************************************
3 * SugarCRM is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
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.
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
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
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.
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.
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 ********************************************************************************/
39 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
41 //holds various filter arrays for displaying vardef dropdowns
42 //You can add your own if you would like
44 $vardef_meta_array = array (
46 'standard_display' => array(
51 'type' => array('id'),
52 'name' => array('parent_type', 'deleted'),
53 'reportable' => array('false'),
56 'inc_override' => array(
57 'type' => array('team_list'),
60 'ex_override' => array(
63 //end standard_display
65 //////////////////////////////////////////////////////////////////
66 'normal_trigger' => array(
71 'type' => array('id', 'link', 'datetime', 'date','datetimecombo'),
72 'custom_type' => array('id', 'link', 'datetime', 'date','datetimecombo'),
73 'name' => array('assigned_user_name', 'parent_type', 'amount_usdollar', 'deleted','filename', 'file_mime_type', 'file_url'),
74 'reportable' => array('false'),
75 'source' => array('non-db'),
79 'inc_override' => array(
80 'type' => array('team_list', 'assigned_user_name'),
81 'name' => array('email1', 'email2', 'assigned_user_id'),
84 'ex_override' => array(
85 'name' => array('team_name', 'account_name'),
91 //////////////////////////////////////////////////////////////////
92 'normal_date_trigger' => array(
97 'type' => array('id', 'link'),
98 'custom_type' => array('id', 'link'),
99 'name' => array('assigned_user_name', 'parent_type', 'amount_usdollar', 'deleted','filename', 'file_mime_type', 'file_url'),
100 'reportable' => array('false'),
101 'source' => array('non-db'),
105 'inc_override' => array(
106 'type' => array('team_list', 'assigned_user_name'),
107 'name' => array('email1', 'email2', 'assigned_user_id'),
110 'ex_override' => array(
111 'name' => array('team_name', 'account_name'),
117 //////////////////////////////////////////////////////////////////
118 'time_trigger' => array(
119 'inclusion' => array(
122 'exclusion' => array(
123 'type' => array('id', 'link', 'team_list', 'time'),
124 'custom_type' => array('id', 'link', 'team_list', 'time'),
125 'name' => array('parent_type', 'team_name', 'assigned_user_name', 'parent_type', 'amount_usdollar', 'deleted' ,'filename', 'file_mime_type', 'file_url'),
126 'source' => array('non-db'),
130 'inc_override' => array(
133 'ex_override' => array(
134 'name' => array('date_entered'),
140 //////////////////////////////////////////////////////////////////
141 'action_filter' => array(
142 'inclusion' => array(
145 'exclusion' => array(
146 'type' => array('id', 'link', 'datetime', 'time'),
147 'custom_type' => array('id', 'link', 'datetime', 'time'),
148 'reportable' => array('false'),
149 'source' => array('non-db'),
150 'name' => array('created_by', 'parent_type', 'deleted', 'assigned_user_name', 'amount_usdollar', 'deleted' ,'filename', 'file_mime_type', 'file_url', 'resource_id'),
154 'inc_override' => array(
155 'type' => array('team_list'),
156 'name' => array('assigned_user_id', 'time_start', 'date_start', 'email1', 'email2', 'date_due'),
159 'ex_override' => array(
160 'name' => array('team_name', 'account_name'),
166 //////////////////////////////////////////////////////////////////
167 'rel_filter' => array(
168 'inclusion' => array(
169 'type' => array('link'),
172 'exclusion' => array(
173 'name' => array('direct_reports', 'accept_status'),
177 'inc_override' => array(
178 'name' => array('accounts', 'account', 'member_of'),
181 'ex_override' => array(
182 //'link_type' => array('one'),
183 'name' => array('users'),
184 'module' => array('Users'),
190 ///////////////////////////////////////////////////////////
191 'trigger_rel_filter' => array(
192 'inclusion' => array(
193 'type' => array('link'),
196 'exclusion' => array(
197 'name' => array('direct_reports', 'accept_status'),
201 'inc_override' => array(
205 'ex_override' => array(
206 'name' => array('users', 'emails', 'product_bundles', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'contract_types'),
207 'module' => array('Users', 'Teams',
213 //end trigger_rel_filter
215 ///////////////////////////////////////////////////////////
216 'alert_rel_filter' => array(
217 'inclusion' => array(
218 'type' => array('link'),
221 'exclusion' => array(
222 'name' => array('direct_reports', 'accept_status'),
226 'inc_override' => array(
230 'ex_override' => array(
231 'name' => array('users', 'emails', 'product_bundles', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'contract_types', 'reports_to_link'),
232 'module' => array('Users', 'Teams',
238 //end alert_rel_filter
240 ///////////////////////////////////////////////////////////
241 'template_filter' => array(
242 'inclusion' => array(
245 'exclusion' => array(
246 'type' => array('id', 'link'),
247 'custom_type' => array('id', 'link'),
248 'reportable' => array('false'),
249 'source' => array('non-db'),
250 'name' => array('created_by', 'parent_type', 'deleted', 'assigned_user_name','amount_usdollar', 'filename', 'file_mime_type', 'file_url'),
254 'inc_override' => array(
255 'name' => array('assigned_user_id', 'assigned_user_name', 'modified_user_id', 'modified_by_name', 'created_by', 'created_by_name', 'full_name', 'email1', 'email2', 'team_name'),
258 'ex_override' => array(
259 'name' => array('team_id'),
263 //end template_filter
265 //////////////////////////////////////////////////////////////
266 'alert_trigger' => array(
267 'inclusion' => array(
270 'exclusion' => array(
271 'type' => array('id', 'link', 'datetime', 'date'),
272 'custom_type' => array('id', 'link', 'datetime', 'date'),
273 'name' => array('assigned_user_name', 'parent_type', 'amount_usdollar', 'deleted', 'filename', 'file_mime_type', 'file_url'),
274 'reportable' => array('false'),
275 'source' => array('non-db'),
279 'inc_override' => array(
280 'type' => array('team_list', 'assigned_user_name'),
281 'name' => array('full_name'),
284 'ex_override' => array(
285 'name' => array('team_name', 'account_name'),
291 //////////////////////////////////////////////////////////////////
292 'template_rel_filter' => array(
293 'inclusion' => array(
294 'type' => array('link'),
297 'exclusion' => array(
298 'name' => array('direct_reports', 'accept_status'),
302 'inc_override' => array(
306 'ex_override' => array(
307 'name' => array('users', 'email_addresses', 'email_addresses_primary', 'emailmarketing', 'tracked_urls', 'queueitems', 'log_entries', 'reports_to_link'),
308 'module' => array('Users', 'Teams',
314 //end template_rel_filter