1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* Enables modules and site configuration for a CDM portal installation.
|
5
|
*/
|
6
|
|
7
|
/**
|
8
|
* Implements hook_form_FORM_ID_alter() for install_configure_form().
|
9
|
*
|
10
|
* Allows the profile to alter the site configuration form.
|
11
|
*/
|
12
|
function CDM_Portal_form_install_configure_form_alter(&$form, $form_state) {
|
13
|
// Pre-populate the form.
|
14
|
$form['site_information']['site_name']['#default_value'] = st('EDIT CDM DataPortal');
|
15
|
$form['site_information']['site_mail']['#default_value'] = 'admin@dataportal.net';
|
16
|
$form['admin_account']['account']['name']['#default_value'] = 'admin';
|
17
|
$form['admin_account']['account']['mail']['#default_value'] = 'wp5Admin@bgbm.org';
|
18
|
|
19
|
// @Comment WA: enable if default password is required (drupal password_confirm field does not allow default value).
|
20
|
// $form['admin_account']['account']['pass']['#type'] = 'textfield';
|
21
|
// $form['admin_account']['account']['pass']['#title'] = st('Password');
|
22
|
// $form['admin_account']['account']['pass']['#default_value'] = 'admin';
|
23
|
$form['server_settings']['site_default_country']['#default_value'] = 'DE';
|
24
|
}
|