-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlabdoo.install
More file actions
50 lines (40 loc) · 1.06 KB
/
labdoo.install
File metadata and controls
50 lines (40 loc) · 1.06 KB
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
<?php
/**
* @file
* Install functions for the profile labdoo.
*/
/**
* Implements hook_install().
*
* Perform actions to set up the site for this profile.
*/
function labdoo_install() {
include_once DRUPAL_ROOT . '/profiles/standard/standard.install';
standard_install();
// Apply all the features.
features_rebuild();
features_revert();
// user settings
variable_set('user_register', USER_REGISTER_VISITORS);
variable_set('user_email_verification', FALSE);
// location settings
variable_set('location_usegmap', TRUE);
_labdoo_install_mailsystem();
_labdoo_install_user_restrictions();
}
function _labdoo_install_mailsystem()
{
variable_set('mailsystem_theme', 'current');
$mail_system = variable_get('mail_system');
$mail_system['default-system'] = 'MimeMailSystem';
variable_set('mail_system', $mail_system);
}
function _labdoo_install_user_restrictions() {
db_insert('user_restrictions')
->fields(array(
'mask' => '%@netcourrier.com',
'type' => 'mail',
'status' => 0, // deny
))
->execute();
}