? 275278-domain-get.patch
? 469856-domain-conf-variable-get.patch
? 469856_contributions-modules-domain-HEAD_0.patch
? 486370-lang.patch
Index: domain.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v
retrieving revision 1.112
diff -u -p -r1.112 domain.module
--- domain.module	19 Jun 2009 14:56:06 -0000	1.112
+++ domain.module	28 Jun 2009 15:35:23 -0000
@@ -934,6 +934,19 @@ function domain_set_domain($domain_id, $
 }
 
 /**
+ * Return the currently active domain.
+ *
+ * This value is stored in a global, but having a function
+ * will let us replace that with a static function in D7.
+ *
+ * @return
+ *   An array of data defining the currently active domain.
+ */
+function domain_get_domain() {
+  return $GLOBALS['_domain'];
+}
+
+/**
  * Check to see if a redirect to the primary domain is needed.
  *
  * If TRUE, issue a redirect and print a message.
