/[drupal]/contributions/profiles/project_management/project_management.profile
ViewVC logotype

Contents of /contributions/profiles/project_management/project_management.profile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Aug 13 16:32:23 2008 UTC (15 months, 2 weeks ago) by njt1982
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Initial commit of a project management install profile
1 <?php
2
3 // vim: filetype=php
4
5 /**
6 * Installation profile.
7 * This code was generated by the profile wizard
8 * Date: Wed, 08/13/2008 - 14:39
9 *
10 * This code goes in your .profile file
11 */
12
13 /*
14 You must include the crud.inc file in your profile.
15 The file is part of the install_profile_api module.
16 */
17 require_once('crud.inc');
18
19 /************************************************************
20 * MODULES *
21 ************************************************************/
22 function project_management_profile_modules() {
23 return array (
24 0 => 'block',
25 1 => 'book',
26 2 => 'casetracker',
27 3 => 'casetracker_basic',
28 4 => 'comment',
29 5 => 'content',
30 6 => 'fieldgroup',
31 7 => 'filter',
32 8 => 'help',
33 9 => 'menu',
34 10 => 'node',
35 11 => 'views',
36 12 => 'views_rss',
37 13 => 'system',
38 14 => 'text',
39 15 => 'upload',
40 16 => 'user',
41 17 => 'og',
42 18 => 'og_access',
43 19 => 'views_ui',
44 20 => 'watchdog',
45 );
46 }
47
48 /************************************************************
49 * DETAILS *
50 ************************************************************/
51 function project_management_profile_details() {
52 return array (
53 'name' => 'Project Management',
54 'description' => 'Project Management installation profile to install and configure the basic default settings for a project management system for use in Drupal.',
55 );
56 }
57
58 function project_management_profile_final() {
59 /************************************************************
60 * VARIABLES *
61 ************************************************************/
62 variable_set('cache', '1');
63 variable_set('cache_lifetime', '0');
64 variable_set('casetracker_case_node_types', array (
65 'casetracker_basic_case' => 'casetracker_basic_case',
66 'book' => 0,
67 'page' => 0,
68 'story' => 0,
69 ));
70 variable_set('casetracker_default_assign_to', 'Anonymous');
71 variable_set('casetracker_default_case_priority', '3');
72 variable_set('casetracker_default_case_status', '6');
73 variable_set('casetracker_default_case_type', '11');
74 variable_set('casetracker_project_node_types', array (
75 'casetracker_basic_project' => 'casetracker_basic_project',
76 'book' => 0,
77 'page' => 0,
78 'story' => 0,
79 ));
80 variable_set('clean_url', '1');
81 variable_set('comment_book', '0');
82 variable_set('comment_casetracker_basic_case', '2');
83 variable_set('comment_casetracker_basic_project', '0');
84 variable_set('comment_page', 0);
85 variable_set('file_directory_path', 'sites/devtest8/files');
86 variable_set('file_directory_temp', '/tmp');
87 variable_set('file_downloads', '2');
88 variable_set('filter_html_1', 1);
89 variable_set('menu_primary_menu', 2);
90 variable_set('menu_secondary_menu', 2);
91 variable_set('node_options_book', array (
92 0 => 'status',
93 ));
94 variable_set('node_options_casetracker_basic_case', array (
95 0 => 'status',
96 ));
97 variable_set('node_options_casetracker_basic_project', array (
98 0 => 'status',
99 ));
100 variable_set('node_options_forum', array (
101 0 => 'status',
102 ));
103 variable_set('node_options_page', array (
104 0 => 'status',
105 ));
106 variable_set('og_admin_email_body', '@body
107
108
109
110 --
111
112 This message was sent by an administrator in the \'@group\' group at @site. To visit this group, browse to !url_group. To unsubscribe from this group, visit !url_unsubscribe.');
113 variable_set('og_approve_user_body', 'You may now post messages in this group located at !group_url.');
114 variable_set('og_approve_user_subject', 'Membership request approved for \'@title\'');
115 variable_set('og_audience_checkboxes', 0);
116 variable_set('og_audience_required', '1');
117 variable_set('og_content_type_usage_book', 'group_post_wiki_nomail');
118 variable_set('og_content_type_usage_casetracker_basic_case', 'group_post_standard_mail');
119 variable_set('og_content_type_usage_casetracker_basic_project', 'group');
120 variable_set('og_deny_user_body', 'Sorry, your membership request was denied.');
121 variable_set('og_deny_user_subject', 'Membership request denied for \'@title\'.');
122 variable_set('og_email_notification_pattern', '@user_name <@site_mail>');
123 variable_set('og_home_page_view', 'og_ghp_ron');
124 variable_set('og_invite_user_body', 'Hi. I\'m a member of \'@group\' and I welcome you to join this group as well. Please see the link and message below.
125
126
127
128 @group
129
130 @description
131
132 Join: !group_url
133
134 @body');
135 variable_set('og_invite_user_subject', 'Invitation to join the group \'@group\' at @site.');
136 variable_set('og_member_pics', 1);
137 variable_set('og_new_admin_body', '@username, you are now an administrator for the group \'@group\'.
138
139
140
141 You can administer this group by logging in here:
142
143 !group_url');
144 variable_set('og_new_admin_subject', 'You are now an administrator for the group \'@group\'.');
145 variable_set('og_new_node_body', '@type \'@subject\' by @username
146
147
148
149 @node_teaser
150
151
152
153 !read_more: !content_url
154
155 Post reply: !reply_url
156
157
158
159 --
160
161 You are subscribed from the group \'@group\' at @site.
162
163 To manage your subscription, visit !group_url.');
164 variable_set('og_new_node_subject', '@group: \'@title\' at @site');
165 variable_set('og_notification', '1');
166 variable_set('og_private_groups', '1');
167 variable_set('og_request_user_body', 'To instantly approve this request, visit !approve_url.
168
169 You may deny this request or manage members at !group_url.');
170 variable_set('og_request_user_subject', 'Membership request for \'@group\' from \'@username\'.');
171 variable_set('og_visibility', '0');
172 variable_set('og_visibility_directory', '0');
173 variable_set('og_visibility_registration', '0');
174 variable_set('old_og_content_type_usage_book', 'omitted');
175 variable_set('old_og_content_type_usage_casetracker_basic_case', 'omitted');
176 variable_set('old_og_content_type_usage_casetracker_basic_proj', 'omitted');
177 variable_set('preprocess_css', 0);
178 variable_set('roles', array (
179 ));
180 system_theme_data();
181 db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' and name = '%s'", 'garland');
182 variable_set('theme_default', 'garland');
183 variable_set('theme_settings', array (
184 'toggle_node_info_page' => false,
185 ));
186 variable_set('upload_book', '1');
187 variable_set('upload_casetracker_basic_case', '1');
188 variable_set('upload_casetracker_basic_project', '0');
189 variable_set('upload_extensions_default', 'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp zip');
190 variable_set('upload_list_default', '1');
191 variable_set('upload_max_resolution', '0');
192 variable_set('upload_uploadsize_default', '2');
193 variable_set('upload_usersize_default', '20');
194 variable_set('user_email_verification', 0);
195 variable_set('user_mail_admin_body', '!username,
196
197
198
199 A site administrator at !site has created an account for you. You may now log in to !login_uri using the following username and password:
200
201
202
203 username: !username
204
205 password: !password
206
207
208
209 You may also log in by clicking on this link or copying and pasting it in your browser:
210
211
212
213 !login_url
214
215
216
217 This is a one-time login, so it can be used only once.
218
219
220
221 After logging in, you will be redirected to !edit_uri so you can change your password.
222
223
224
225
226
227 -- !site team');
228 variable_set('user_mail_admin_subject', 'An administrator created an account for you at !site');
229 variable_set('user_mail_approval_body', '!username,
230
231
232
233 Thank you for registering at !site. Your application for an account is currently pending approval. Once it has been granted, you may log in to !login_uri using the following username and password:
234
235
236
237 username: !username
238
239 password: !password
240
241
242
243 You may also log in by clicking on this link or copying and pasting it in your browser:
244
245
246
247 !login_url
248
249
250
251 This is a one-time login, so it can be used only once.
252
253
254
255 After logging in, you may wish to change your password at !edit_uri
256
257
258
259
260
261 -- !site team');
262 variable_set('user_mail_approval_subject', 'Account details for !username at !site (pending admin approval)');
263 variable_set('user_mail_pass_body', '!username,
264
265
266
267 A request to reset the password for your account has been made at !site.
268
269
270
271 You may now log in to !uri_brief by clicking on this link or copying and pasting it in your browser:
272
273
274
275 !login_url
276
277
278
279 This is a one-time login, so it can be used only once. It expires after one day and nothing will happen if it\'s not used.
280
281
282
283 After logging in, you will be redirected to !edit_uri so you can change your password.');
284 variable_set('user_mail_pass_subject', 'Replacement login information for !username at !site');
285 variable_set('user_mail_welcome_body', '!username,
286
287
288
289 Thank you for registering at !site. You may now log in to !login_uri using the following username and password:
290
291
292
293 username: !username
294
295 password: !password
296
297
298
299 You may also log in by clicking on this link or copying and pasting it in your browser:
300
301
302
303 !login_url
304
305
306
307 This is a one-time login, so it can be used only once.
308
309
310
311 After logging in, you will be redirected to !edit_uri so you can change your password.
312
313
314
315
316
317 -- !site team');
318 variable_set('user_mail_welcome_subject', 'Account details for !username at !site');
319 variable_set('user_pictures', '1');
320 variable_set('user_picture_default', '');
321 variable_set('user_picture_dimensions', '120x120');
322 variable_set('user_picture_file_size', '100');
323 variable_set('user_picture_guidelines', '');
324 variable_set('user_picture_path', 'pictures');
325 variable_set('user_register', '0');
326 variable_set('user_registration_help', '');
327
328 /************************************************************
329 * NODE TYPES *
330 ************************************************************/
331 install_add_content_type(array (
332 'type' => 'book',
333 'name' => 'Book page',
334 'module' => 'book',
335 'description' => 'A book is a collaborative writing effort: users can collaborate writing the pages of the book, positioning the pages in the right order, and reviewing or modifying pages previously written. So when you have some information to share or when you read a page of the book and you didn\'t like it, or if you think a certain page could have been written better, you can do something about it.',
336 'help' => '',
337 'has_title' => '1',
338 'title_label' => 'Title',
339 'has_body' => '1',
340 'body_label' => 'Body',
341 'min_word_count' => '0',
342 'custom' => '0',
343 'modified' => '1',
344 'locked' => '1',
345 'orig_type' => 'book',
346 ));
347 install_add_content_type(array (
348 'type' => 'casetracker_basic_project',
349 'name' => 'Project',
350 'module' => 'casetracker_basic_project',
351 'description' => 'Create a basic project for use with Case Tracker.',
352 'help' => 'Create a basic project for use with Case Tracker.',
353 'has_title' => '1',
354 'title_label' => 'Title',
355 'has_body' => '1',
356 'body_label' => 'Description',
357 'min_word_count' => '0',
358 'custom' => '0',
359 'modified' => '1',
360 'locked' => '1',
361 'orig_type' => 'casetracker_basic_project',
362 ));
363 install_add_content_type(array (
364 'type' => 'casetracker_basic_case',
365 'name' => 'Case',
366 'module' => 'casetracker_basic_case',
367 'description' => 'Open a new case assigned to a particular project.',
368 'help' => 'Open a new case assigned to a particular project.',
369 'has_title' => '1',
370 'title_label' => 'Title',
371 'has_body' => '1',
372 'body_label' => 'Description',
373 'min_word_count' => '0',
374 'custom' => '0',
375 'modified' => '1',
376 'locked' => '1',
377 'orig_type' => 'casetracker_basic_case',
378 ));
379 install_add_content_type(array (
380 'type' => 'page',
381 'name' => 'Page',
382 'module' => 'node',
383 'description' => 'If you want to add a static page, like a contact page or an about page, use a page.',
384 'help' => '',
385 'has_title' => '1',
386 'title_label' => 'Title',
387 'has_body' => '1',
388 'body_label' => 'Body',
389 'min_word_count' => '0',
390 'custom' => '1',
391 'modified' => '1',
392 'locked' => '0',
393 'orig_type' => 'page',
394 ));
395
396 /************************************************************
397 * ROLES *
398 ************************************************************/
399 $role_id = array();
400 install_set_permissions(1, array ());
401 install_set_permissions(2, array (
402 'access content',
403 'create book pages',
404 'create new books',
405 'edit own book pages',
406 'see printer-friendly version',
407 'access case tracker',
408 'assign case to user',
409 'set case priority',
410 'set case status',
411 'create cases',
412 'edit own cases',
413 'access comments',
414 'post comments',
415 'post comments without approval',
416 'access content',
417 'upload files',
418 'view uploaded files',
419 ));
420 install_set_permissions($role_id['project administrator'] = install_add_role('project administrator'), array (
421 'edit own projects',
422 ));
423 install_set_permissions($role_id['site administrator'] = install_add_role('site administrator'), array (
424 'administer blocks',
425 'administer case tracker',
426 'administer comments',
427 'administer filters',
428 'administer menu',
429 'administer content types',
430 'administer organic groups',
431 'administer site configuration',
432 'administer access control',
433 'access all views',
434 'administer views',
435 ));
436
437 /************************************************************
438 * USERS *
439 ************************************************************/
440 install_add_user('admin', 'admin', 'null@null.com', array (), 1);
441
442 /************************************************************
443 * EXPORTING NODES *
444 ************************************************************/
445
446 system_initialize_theme_blocks('garland');
447
448 return;
449 }
450

  ViewVC Help
Powered by ViewVC 1.1.2