forked from OS2web/os2web-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos2web.install
36 lines (31 loc) · 1.13 KB
/
os2web.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
<?php
/**
* @file
* This file install the os2web profile.
*/
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*/
function os2web_install() {
include_once DRUPAL_ROOT . '/profiles/minimal/minimal.install';
// Allow visitor account creation, but with administrative approval.
variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
// Enable default permissions for system roles.
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content'));
theme_enable(array('seven', 'cmstheme'));
theme_disable(array('bartik', 'rubik'));
variable_set('theme_default', 'odsherredweb');
// Set admin theme to Rubik.
variable_set('admin_theme', 'seven');
// Set admin theme on node/edit and node/add
variable_set('node_admin_theme', '1');
module_disable(array('update'));
// Set default TZ.
variable_set('date_default_timezone', "Europe/Berlin");
variable_set('date_first_day', "1");
variable_set('configurable_timezones', "0");
variable_set('site_frontpage', "home");
}