diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-22 16:16:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-22 16:16:42 +0000 |
commit | d79dff03ac0a40457ec5d380f73ecd0bf1ea3e35 (patch) | |
tree | fb10b3cccb6ecc2166404e6049e18c44bb9cd288 /profiles | |
parent | 19c7193c4c3b54efc053d8fee98cb5d00fd79c18 (diff) | |
download | brdo-d79dff03ac0a40457ec5d380f73ecd0bf1ea3e35.tar.gz brdo-d79dff03ac0a40457ec5d380f73ecd0bf1ea3e35.tar.bz2 |
- Patch #124980 by jhodgdon: Indexer is removing ... and -- instead of replacing with a space.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/minimal/minimal.profile | 3 | ||||
-rw-r--r-- | profiles/standard/standard.profile | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/profiles/minimal/minimal.profile b/profiles/minimal/minimal.profile index 5fd06c3fc..7f0bf8a98 100644 --- a/profiles/minimal/minimal.profile +++ b/profiles/minimal/minimal.profile @@ -2,10 +2,11 @@ // $Id$ /** - * Implements hook_form_alter(). + * Implements hook_form_FORM_ID_alter(). * * Allows the profile to alter the site configuration form. */ function minimal_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']; } 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']; } |