-
Notifications
You must be signed in to change notification settings - Fork 2
/
vih_dk.profile
28 lines (26 loc) · 1.06 KB
/
vih_dk.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
<?php
/**
* @file
* Source code for the profile
*/
/**
* Implements hook_form_FORM_ID_alter().
*
* Allows the profile to alter the site configuration form.
*/
function vih_dk_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the site name with the server name.
$form['site_information']['site_name']['#default_value'] = 'Vejle Idrætshøjskole';
$form['site_information']['site_mail']['#default_value'] = '[email protected]';
$form['admin_account']['account']['name']['#default_value'] = 'administrator';
$form['server_settings']['site_default_country']['#default_value'] = 'DK';
$form['server_settings']['date_default_timezone']['#default_value'] = 'Europe/Copenhagen';
}
/**
* Implements hook_install_tasks_alter()
*/
function vih_dk_install_tasks_alter(&$tasks, $install_state) {
// Magically go one level deeper in solving years of dependency problems
require_once(drupal_get_path('module', 'panopoly_core') . '/panopoly_core.profile.inc');
$tasks['install_load_profile']['function'] = 'panopoly_core_install_load_profile';
}