-
Notifications
You must be signed in to change notification settings - Fork 3
/
drupartcms.profile
26 lines (22 loc) · 962 Bytes
/
drupartcms.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
<?php
/**
* @file
* Enables modules and site configuration for a minimal site installation.
*/
/**
* Implements hook_form_FORM_ID_alter() for install_configure_form().
*
* Allows the profile to alter the site configuration form.
*/
function drupartcms_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the site name with the server name.
$form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME'];
// set default site email
$form['site_information']['site_mail']['#default_value'] = '[email protected]';
// set default admin values
$form['admin_account']['account']['name']['#default_value'] = 'admin';
$form['admin_account']['account']['mail']['#default_value'] = '[email protected]';
// set default location
$form['server_settings']['date_default_timezone']['#default_value'] = 'Europe/Budapest';
$form['server_settings']['site_default_country']['#default_value'] = 'HU';
}