2008-07-05 10:58:12 +00:00
|
|
|
<?php
|
2012-02-29 21:19:26 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Enables modules and site configuration for a minimal site installation.
|
|
|
|
*/
|
2008-07-05 10:58:12 +00:00
|
|
|
|
|
|
|
/**
|
2012-02-29 21:19:26 +00:00
|
|
|
* Implements hook_form_FORM_ID_alter() for install_configure_form().
|
2008-07-05 10:58:12 +00:00
|
|
|
*
|
2010-01-03 06:58:52 +00:00
|
|
|
* Allows the profile to alter the site configuration form.
|
2008-07-05 10:58:12 +00:00
|
|
|
*/
|
2010-01-04 23:08:34 +00:00
|
|
|
function minimal_form_install_configure_form_alter(&$form, $form_state) {
|
2010-07-22 16:16:42 +00:00
|
|
|
// Pre-populate the site name with the server name.
|
2013-12-05 18:02:36 +00:00
|
|
|
$form['site_information']['site_name']['#default_value'] = \Drupal::request()->server->get('SERVER_NAME');
|
2008-07-05 10:58:12 +00:00
|
|
|
}
|