Index: domain_conf.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain_conf/domain_conf.module,v
retrieving revision 1.41
diff -u -r1.41 domain_conf.module
--- domain_conf.module	25 Mar 2009 22:18:35 -0000	1.41
+++ domain_conf.module	6 Apr 2009 16:23:34 -0000
@@ -404,6 +404,16 @@
 }
 
 /**
+* Implements hook_domainupdate().
+*/
+function domain_conf_domainupdate($op, $domain, $form_state = array()) {
+  if ($op == 'delete' && $domain['domain_id'] > 0) {
+    db_query("DELETE FROM {domain_conf} WHERE domain_id = %d", $domain['domain_id']);
+    cache_clear_all('variables', 'cache');
+  }
+}
+
+/**
  * Retrieves elements from hook_domainconf() and formats them
  * as needed.
  *
@@ -513,7 +523,7 @@
  * A boolean flag to reset the static variable array for the domain. Useful
  * if you are changing variables during a page request.
  * @return
- * The value of the variable for that domain, or NULL if not set, 
+ * The value of the variable for that domain, or NULL if not set,
  * or an array of variables, in the case of $all.
  */
 function domain_conf_variable_get($domain_id, $variable = '', $all = FALSE, $reset = FALSE) {

