This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
forked from omega8cc/feature_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfserver_profile.profile
78 lines (67 loc) · 1.93 KB
/
fserver_profile.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Return a description of the profile for the initial installation screen.
*
* @return
* An array with keys 'name' and 'description' describing this profile.
*/
function fserver_profile_profile_details() {
return array(
'name' => 'Feature Server',
'description' => 'Select this profile to deploy a feature server.'
);
}
/**
* Return an array of the modules to be enabled when this profile is installed.
*
* @return
* An array of modules to be enabled.
*/
function fserver_profile_profile_modules() {
return array(
/* optional core */
'dblog', 'help', 'menu', 'taxonomy',
/* contrib */
'content', 'context', 'ctools', 'features',
'filefield', 'fserver', 'nodereference',
'nodereference_url', 'number', 'optionwidgets',
'strongarm', 'text', 'views', 'link',
/* features */
'fserver_navigation', 'fserver_categories',
);
}
/**
* Return a list of tasks that this profile supports.
*
* @return
* A keyed array of tasks the profile will perform during
* the final stage. The keys of the array will be used internally,
* while the values will be displayed to the user in the installer
* task list.
*/
function fserver_profile_task_list() {
}
/**
* Implementation of hook_profile_tasks().
*/
function fserver_profile_profile_tasks() {
// Update the menu router information.
menu_rebuild();
// call rebuild - this makes the cck fields 'associate' to their node types properly
features_rebuild();
// Set the front page to be fserver
variable_set('site_frontpage', 'fserver');
// Theme settings
$data = array();
$data['layout'] = 'fluid';
$data['autoclose'] = array(
'status' => 'status',
'warning' => 0,
'error' => 0,
);
$data['style'] = 'sea';
$data['background_color'] = '#888888';
$data['background_repeat'] = 'no-repeat';
variable_set('theme_singular_settings', $data);
variable_set('theme_default', 'singular');
}