summaryrefslogtreecommitdiff
path: root/profiles/standard/standard.profile
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/standard/standard.profile')
-rw-r--r--profiles/standard/standard.profile14
1 files changed, 14 insertions, 0 deletions
diff --git a/profiles/standard/standard.profile b/profiles/standard/standard.profile
new file mode 100644
index 000000000..d8203d0e5
--- /dev/null
+++ b/profiles/standard/standard.profile
@@ -0,0 +1,14 @@
+<?php
+// $Id$
+
+/**
+ * Implements hook_form_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'];
+ }
+}