standard.profile 458 B

123456789101112131415
  1. <?php
  2. /**
  3. * @file
  4. * Enables modules and site configuration for a standard site installation.
  5. */
  6. /**
  7. * Implements hook_form_FORM_ID_alter() for install_configure_form().
  8. *
  9. * Allows the profile to alter the site configuration form.
  10. */
  11. function standard_form_install_configure_form_alter(&$form, $form_state) {
  12. // Pre-populate the site name with the server name.
  13. $form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME'];
  14. }