diff options
Diffstat (limited to 'profiles/standard/standard.profile')
-rw-r--r-- | profiles/standard/standard.profile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/profiles/standard/standard.profile b/profiles/standard/standard.profile index d8203d0e5..9180e9580 100644 --- a/profiles/standard/standard.profile +++ b/profiles/standard/standard.profile @@ -2,13 +2,11 @@ // $Id$ /** - * Implements hook_form_alter(). + * Implements hook_form_FORM_ID_alter(). * * Allows the profile to alter the site configuration form. */ -function standard_form_alter(&$form, $form_state, $form_id) { - if ($form_id == 'install_configure_form') { - // Set default for site name field. - $form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME']; - } +function standard_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']; } |