? domain-123.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.179
diff -u -p -r1.179 domain.module
--- domain.module	7 Apr 2010 21:25:44 -0000	1.179
+++ domain.module	9 Apr 2010 06:53:03 -0000
@@ -379,14 +379,14 @@ function domain_user_load($users) {
  * Implements hook_user_insert()
  */
 function domain_user_insert(&$edit, $account, $category) {
-  domain_user_save(&$edit, $account, $category);
+  domain_user_save($edit, $account, $category);
 }
 
 /**
  * Implements hook_user_update()
  */
 function domain_user_update(&$edit, $account, $category) {
-  domain_user_save(&$edit, $account, $category);
+  domain_user_save($edit, $account, $category);
 }
 
 /**
@@ -474,14 +474,14 @@ function domain_user_view($account, $vie
  * Implements hook_form_FORM_ID_alter().
  */
 function domain_form_user_profile_form_alter(&$form, &$form_state) {
-  domain_form_user_form_alter(&$form, &$form_state);
+  domain_form_user_form_alter($form, $form_state);
 }
 
 /**
  * Implements hook_form_FORM_ID_alter().
  */
 function domain_form_user_register_form_alter(&$form, &$form_state) {
-  domain_form_user_form_alter(&$form, &$form_state);
+  domain_form_user_form_alter($form, $form_state);
 }
 
 /**
Index: domain_theme/domain_theme.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain_theme/domain_theme.module,v
retrieving revision 1.25
diff -u -p -r1.25 domain_theme.module
--- domain_theme/domain_theme.module	3 Apr 2010 13:36:28 -0000	1.25
+++ domain_theme/domain_theme.module	9 Apr 2010 06:53:03 -0000
@@ -160,12 +160,11 @@ function domain_theme_domainlinks($domai
  */
 function domain_theme_domainform(&$form) {
   // Set the module weight for Domain Theme,
-  $module_weight = variable_get('domain_theme_weight', 0);
   db_update('system')
-    ->fields(array('weight' => $module_weight))
-    ->condition(array('name' => 'domain_theme', 'type' => 'module'))
+    ->fields(array('weight' => variable_get('domain_theme_weight', 0)))
+    ->condition('name', 'domain_theme')
+    ->condition('type', 'module')
     ->execute();
-#  db_query("UPDATE {system} SET weight = %d WHERE name = 'domain_theme' AND type = 'module'", $module_weight);
 
   // Add the form element to the main screen.
   $form['domain_theme'] = array(
