2006-07-13 13:14:25 +00:00
|
|
|
<?php
|
2006-07-14 01:05:10 +00:00
|
|
|
// $Id$
|
2006-07-13 13:14:25 +00:00
|
|
|
|
2007-11-19 13:56:14 +00:00
|
|
|
/**
|
2009-05-27 18:34:03 +00:00
|
|
|
* Implement hook_form_alter().
|
2007-11-19 13:56:14 +00:00
|
|
|
*
|
|
|
|
* Allows the profile to alter the site-configuration form. This is
|
|
|
|
* called through custom invocation, so $form_state is not populated.
|
|
|
|
*/
|
|
|
|
function default_form_alter(&$form, $form_state, $form_id) {
|
|
|
|
if ($form_id == 'install_configure') {
|
|
|
|
// Set default for site name field.
|
2007-12-17 12:43:34 +00:00
|
|
|
$form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME'];
|
2007-11-19 13:56:14 +00:00
|
|
|
}
|
|
|
|
}
|