-
Notifications
You must be signed in to change notification settings - Fork 0
/
asc.install
67 lines (58 loc) · 1.61 KB
/
asc.install
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
<?php
/**
* @file
* Installation profile for Arts and Sciences.
*/
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*/
function asc_install() {
include_once DRUPAL_ROOT . '/profiles/minimal/minimal.install';
// minimal_install();
// List of Modules to disable.
$disable = array(
'toolbar',
'dblog',
'overlay',
);
module_disable($disable, TRUE);
// Setup default themes, disable others.
variable_set("theme_default", "q7");
variable_set("admin_theme", "seven");
variable_set("node_admin_theme", '1');
variable_set("asc_footer_address_1", '123 Derby Hall');
variable_set("asc_footer_city", 'Columbus');
variable_set("asc_footer_state", 'OH');
variable_set("asc_footer_zip", '43210');
variable_set("node_admin_theme", '1');
variable_set("node_admin_theme", '1');
variable_set("site_frontpage", 'front');
theme_enable(array("q7"));
theme_disable(array("bartik"));
// Update admin username and e-mail.
db_update('users')
->fields(array('name' => 'ascoverseer', 'mail' => '[email protected]'))
->condition('uid', '1')
->execute();
//Enable Blocks
$query = db_merge('block')
->key(array(
'module' => 'search',
'delta' => 'form',
))
->fields(array(
'module' => 'search',
'delta' => 'form',
'theme' => 'q7',
'status' => '1',
'weight' => '0',
'region' => 'footer_second',
'pages' => '',
'cache' => '-1',
))
->execute();
//won't work at this stage
//features_revert(array('asc_front' => array('fe_block_settings')));
}