]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/modules.php
Release 6.1.4
[Github/sugarcrm.git] / include / modules.php
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
4  * SugarCRM 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 /*********************************************************************************gf
39
40  * Description:  Executes a step in the installation process.
41  ********************************************************************************/
42
43 $moduleList = array();
44 // this list defines the modules shown in the top tab list of the app
45 //the order of this list is the default order displayed - do not change the order unless it is on purpose
46 $moduleList[] = 'Home';
47
48 $moduleList[] = 'Activities';
49 $moduleList[] = 'Leads';
50 $moduleList[] = 'Contacts';
51 $moduleList[] = 'Accounts';
52 $moduleList[] = 'Opportunities';
53
54 $moduleList[] = 'Emails';
55 $moduleList[] = 'Campaigns';
56
57 $moduleList[] = 'Documents';
58 $moduleList[] = 'Cases';
59 $moduleList[] = 'Project';
60 $moduleList[] = 'Bugs';
61
62
63
64
65 // this list defines all of the module names and bean names in the app
66 // to create a new module's bean class, add the bean definition here
67 $beanList = array();
68 //ACL Objects
69 $beanList['ACLRoles']       = 'ACLRole';
70 $beanList['ACLActions']     = 'ACLAction';
71 //END ACL OBJECTS
72 $beanList['Leads']          = 'Lead';
73 $beanList['Cases']          = 'aCase';
74 $beanList['Bugs']           = 'Bug';
75 $beanList['ProspectLists']      = 'ProspectList';
76 $beanList['Prospects']  = 'Prospect';
77 $beanList['Project']            = 'Project';
78 $beanList['ProjectTask']            = 'ProjectTask';
79 $beanList['Campaigns']          = 'Campaign';
80 $beanList['EmailMarketing']  = 'EmailMarketing';
81 $beanList['CampaignLog']        = 'CampaignLog';
82 $beanList['CampaignTrackers']   = 'CampaignTracker';
83 $beanList['Releases']       = 'Release';
84 $beanList['Groups'] = 'Group';
85 $beanList['EmailMan'] = 'EmailMan';
86 $beanList['Schedulers']  = 'Scheduler';
87 $beanList['SchedulersJobs']  = 'SchedulersJob';
88 $beanList['Contacts']       = 'Contact';
89 $beanList['Accounts']       = 'Account';
90 $beanList['DynamicFields']  = 'DynamicField';
91 $beanList['EditCustomFields']   = 'FieldsMetaData';
92 $beanList['Opportunities']  = 'Opportunity';
93 $beanList['EmailTemplates']     = 'EmailTemplate';
94 $beanList['Notes']          = 'Note';
95 $beanList['Calls']          = 'Call';
96 $beanList['Emails']         = 'Email';
97 $beanList['Meetings']       = 'Meeting';
98 $beanList['Tasks']          = 'Task';
99 $beanList['Users']          = 'User';
100 $beanList['Currencies']     = 'Currency';
101 $beanList['Trackers']       = 'Tracker';
102 $beanList['Connectors']     = 'Connectors';
103 $beanList['Import_1']         = 'ImportMap';
104 $beanList['Import_2']       = 'UsersLastImport';
105 $beanList['Versions']       = 'Version';
106 $beanList['Administration'] = 'Administration';
107 $beanList['vCals']          = 'vCal';
108 $beanList['CustomFields']       = 'CustomFields';
109
110
111
112
113
114 $beanList['Documents']  = 'Document';
115 $beanList['DocumentRevisions']  = 'DocumentRevision';
116 $beanList['Roles']  = 'Role';
117
118 $beanList['Audit']  = 'Audit';
119
120 // deferred
121 //$beanList['Queues'] = 'Queue';
122
123 $beanList['InboundEmail'] = 'InboundEmail';
124
125
126 $beanList['SavedSearch']            = 'SavedSearch';
127 $beanList['UserPreferences']        = 'UserPreference';
128 $beanList['MergeRecords'] = 'MergeRecord';
129 $beanList['EmailAddresses'] = 'EmailAddress';
130 $beanList['Relationships'] = 'Relationship';
131 $beanList['Employees']      = 'Employee';
132
133
134
135
136 // this list defines all of the files that contain the SugarBean class definitions from $beanList
137 // to create a new module's bean class, add the file definition here
138 $beanFiles = array();
139
140 $beanFiles['ACLAction'] = 'modules/ACLActions/ACLAction.php';
141 $beanFiles['ACLRole'] = 'modules/ACLRoles/ACLRole.php';
142 $beanFiles['Relationship']  = 'modules/Relationships/Relationship.php';
143
144 $beanFiles['Lead']          = 'modules/Leads/Lead.php';
145 $beanFiles['aCase']         = 'modules/Cases/Case.php';
146 $beanFiles['Bug']           = 'modules/Bugs/Bug.php';
147 $beanFiles['Group'] = 'modules/Groups/Group.php';
148 $beanFiles['CampaignLog']  = 'modules/CampaignLog/CampaignLog.php';
149 $beanFiles['Project']           = 'modules/Project/Project.php';
150 $beanFiles['ProjectTask']           = 'modules/ProjectTask/ProjectTask.php';
151 $beanFiles['Campaign']          = 'modules/Campaigns/Campaign.php';
152 $beanFiles['ProspectList']      = 'modules/ProspectLists/ProspectList.php';
153 $beanFiles['Prospect']  = 'modules/Prospects/Prospect.php';
154
155 $beanFiles['EmailMarketing']          = 'modules/EmailMarketing/EmailMarketing.php';
156 $beanFiles['CampaignTracker']  = 'modules/CampaignTrackers/CampaignTracker.php';
157 $beanFiles['Release']           = 'modules/Releases/Release.php';
158 $beanFiles['EmailMan']          = 'modules/EmailMan/EmailMan.php';
159
160 $beanFiles['Scheduler']  = 'modules/Schedulers/Scheduler.php';
161 $beanFiles['SchedulersJob']  = 'modules/SchedulersJobs/SchedulersJob.php';
162 $beanFiles['Contact']       = 'modules/Contacts/Contact.php';
163 $beanFiles['Account']       = 'modules/Accounts/Account.php';
164 $beanFiles['Opportunity']   = 'modules/Opportunities/Opportunity.php';
165 $beanFiles['EmailTemplate']         = 'modules/EmailTemplates/EmailTemplate.php';
166 $beanFiles['Note']          = 'modules/Notes/Note.php';
167 $beanFiles['Call']          = 'modules/Calls/Call.php';
168 $beanFiles['Email']         = 'modules/Emails/Email.php';
169 $beanFiles['Meeting']       = 'modules/Meetings/Meeting.php';
170 $beanFiles['Task']          = 'modules/Tasks/Task.php';
171 $beanFiles['User']          = 'modules/Users/User.php';
172 $beanFiles['Employee']      = 'modules/Employees/Employee.php';
173 $beanFiles['Currency']          = 'modules/Currencies/Currency.php';
174 $beanFiles['Tracker']          = 'modules/Trackers/Tracker.php';
175 $beanFiles['ImportMap']     = 'modules/Import/ImportMap.php';
176 $beanFiles['UsersLastImport']= 'modules/Import/UsersLastImport.php';
177 $beanFiles['Administration']= 'modules/Administration/Administration.php';
178 $beanFiles['UpgradeHistory']= 'modules/Administration/UpgradeHistory.php';
179 $beanFiles['vCal']          = 'modules/vCals/vCal.php';
180
181 $beanFiles['Version']           = 'modules/Versions/Version.php';
182
183
184
185 $beanFiles['Role']          = 'modules/Roles/Role.php';
186
187 $beanFiles['Document']  = 'modules/Documents/Document.php';
188 $beanFiles['DocumentRevision']  = 'modules/DocumentRevisions/DocumentRevision.php';
189 $beanFiles['FieldsMetaData']    = 'modules/DynamicFields/FieldsMetaData.php';
190 //$beanFiles['Audit']           = 'modules/Audit/Audit.php';
191
192 // deferred
193 //$beanFiles['Queue'] = 'modules/Queues/Queue.php';
194
195 $beanFiles['InboundEmail'] = 'modules/InboundEmail/InboundEmail.php';
196
197
198
199 $beanFiles['SavedSearch']  = 'modules/SavedSearch/SavedSearch.php';
200 $beanFiles['UserPreference']  = 'modules/UserPreferences/UserPreference.php';
201 $beanFiles['MergeRecord']  = 'modules/MergeRecords/MergeRecord.php';
202 $beanFiles['EmailAddress'] = 'modules/EmailAddresses/EmailAddress.php';
203
204
205
206 // TODO: Remove the Library module, it is an example. 
207 //$moduleList[] = 'Library';
208 //$beanList['Library']= 'Library';
209 //$beanFiles['Library'] = 'modules/Library/Library.php';
210
211 $beanFiles['Configurator']          = 'modules/Configurator/Configurator.php';
212
213 // added these lists for security settings for tabs
214 $modInvisList = array('Administration', 'Currencies', 'CustomFields', 'Connectors',
215     'Dropdown', 'Dynamic', 'DynamicFields', 'DynamicLayout', 'EditCustomFields',
216     'Help', 'Import',  'MySettings', 'EditCustomFields','FieldsMetaData',
217     'UpgradeWizard', 'Trackers', 'Connectors', 'Employees', 'Calendar',
218     'Releases','Sync',
219     'Users',  'Versions', 'LabelEditor','Roles','EmailMarketing'
220     ,'OptimisticLock', 'TeamMemberships', 'TeamSets', 'TeamSetModule', 'Audit', 'MailMerge', 'MergeRecords', 'EmailAddresses',
221     'Schedulers','Schedulers_jobs', /*'Queues',*/ 'EmailTemplates', 
222     'CampaignTrackers', 'CampaignLog', 'EmailMan', 'Prospects', 'ProspectLists',
223     'Groups','InboundEmail',
224     'ACLActions', 'ACLRoles',
225     'DocumentRevisions',
226     'ProjectTask',
227     );
228 $adminOnlyList = array(
229                     //module => list of actions  (all says all actions are admin only)
230                    //'Administration'=>array('all'=>1, 'SupportPortal'=>'allow'),
231                     'Dropdown'=>array('all'=>1),
232                     'Dynamic'=>array('all'=>1),
233                     'DynamicFields'=>array('all'=>1),
234                     'Currencies'=>array('all'=>1),
235                     'EditCustomFields'=>array('all'=>1),
236                     'FieldsMetaData'=>array('all'=>1),
237                     'LabelEditor'=>array('all'=>1),
238                     'ACL'=>array('all'=>1),
239                     'ACLActions'=>array('all'=>1),
240                     'ACLRoles'=>array('all'=>1),
241                     'UpgradeWizard' => array('all' => 1),
242                     'Studio' => array('all' => 1),
243                     );
244
245
246 $modInvisListActivities = array('Calls', 'Meetings','Notes','Tasks','Calendar');
247
248
249
250 $modInvisList[] = 'ACL';
251 $modInvisList[] = 'ACLRoles';
252 $modInvisList[] = 'Configurator';
253 $modInvisList[] = 'UserPreferences';
254 $modInvisList[] = 'SavedSearch';
255 // deferred
256 //$modInvisList[] = 'Queues';
257 $modInvisList[] = 'Studio';
258 $modInvisList[] = 'Connectors';
259
260 $beanList['SugarFeed'] = 'SugarFeed';
261 $beanFiles['SugarFeed'] = 'modules/SugarFeed/SugarFeed.php';
262 $modInvisList[] = 'SugarFeed';
263
264
265 // This is the mapping for modules that appear under a different module's tab
266 // Be sure to also add the modules to $modInvisList, otherwise their tab will still appear
267 $GLOBALS['moduleTabMap'] = array(
268     'UpgradeWizard' => 'Administration',
269     'EmailMan' => 'Administration',
270     'ModuleBuilder' => 'Administration',
271     'Configurator' => 'Administration',
272     'Studio' => 'Administration',
273     'Currencies' => 'Administration',
274     'SugarFeed' => 'Administration',
275     'DocumentRevisions' => 'Documents',
276     'EmailTemplates' => 'Emails',
277     'ProspectLists' => 'Campaigns',
278     'Prospects' => 'Campaigns',
279         'EmailMarketing' => 'Campaigns',
280 );
281
282 if (file_exists('include/modules_override.php'))
283 {
284     include('include/modules_override.php');
285 }
286 if (file_exists('custom/application/Ext/Include/modules.ext.php'))
287 {
288     include('custom/application/Ext/Include/modules.ext.php');
289 }
290 ?>