? 609600-sitename-d5.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.40.2.33
diff -u -p -r1.40.2.33 domain.module
--- domain.module	11 Oct 2009 15:42:45 -0000	1.40.2.33
+++ domain.module	23 Oct 2009 17:55:58 -0000
@@ -1019,7 +1019,7 @@ function domain_form_alter($form_id, &$f
   }
   // Set a message if we are on an admin page.
   domain_warning_check($form_id);
-  
+
   // If SEO is turned on, then form actions need to be absolute paths
   // to the currently active domain.  See http://drupal.org/node/196217.
   $seo = variable_get('domain_seo', 0);
@@ -1036,6 +1036,11 @@ function domain_form_alter($form_id, &$f
     }
   }
 
+  // Save our settings for the default domain.
+  if ($form_id = 'system_site_information_settings' && arg(2) != 'domain') {
+    $form['#submit']['domain_form_sitename_submit'] = array();
+  }
+
   // Apply to all node editing forms, but make sure we are not on the CCK field configuration form.
   if ($form['#id'] == 'node-form' && !$form['#node']->cck_dummy_node_form) {
     global $_domain, $user;
@@ -1220,6 +1225,15 @@ function domain_form_alter($form_id, &$f
 }
 
 /**
+ * Update the default domain's sitename.
+ */
+function domain_form_sitename_submit($form, &$form_state) {
+  variable_set('domain_sitename', $form_state['values']['site_name']);
+  drupal_set_message(t('Primary domain settings updated.'));
+}
+
+
+/**
  * Activate the hidden grant for searches.
  *
  * @param $reset
Index: domain_admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/Attic/domain_admin.inc,v
retrieving revision 1.29.2.12
diff -u -p -r1.29.2.12 domain_admin.inc
--- domain_admin.inc	28 Jun 2009 20:23:44 -0000	1.29.2.12
+++ domain_admin.inc	23 Oct 2009 17:55:59 -0000
@@ -277,7 +277,6 @@ function domain_configure_form($user_sub
       This feature requires the hook_url_alter() patch.')
   );
 
-
   $options = array('-1' => t('Do not change domain'));
   foreach (domain_domains() as $data) {
     // The domain must be valid.
