-
Notifications
You must be signed in to change notification settings - Fork 2
/
gnl_profile.profile
27 lines (22 loc) · 1.12 KB
/
gnl_profile.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
<?php
// The name of the site, taken from the URL.
define('GNL_SITE_NAME', $_SERVER['SERVER_NAME']);
/**
* Implements hook_form_alter().
*
* Allows the profile to alter the site configuration form.
*/
function gnl_profile_form_install_configure_form_alter(&$form, $form_state) {
// Set a default site name and email address.
$form['site_information']['site_name']['#default_value'] = GNL_SITE_NAME;
$form['site_information']['site_mail']['#default_value'] = 'hello@detroitledger.org';
// Set a default username and email address.
$form['admin_account']['account']['name']['#default_value'] = 'ledger';
$form['admin_account']['account']['mail']['#default_value'] = 'hello@detroitledger.org';
// Set a default country and timezone.
$form['server_settings']['site_default_country']['#default_value'] = 'US';
$form['server_settings']['date_default_timezone']['#default_value'] = 'America/Detroit';
// Disable the 'receive email notifications' checkbox.
$form['update_notifications']['update_status_module']['#default_value'][0] = 0;
$form['update_notifications']['update_status_module']['#default_value'][1] = 0;
}