domain_goto($domain)
domain.module, line 599
Determine if we must switch the active domain.
This function will execute a drupal_goto() to pop users to the correct domain.
$domain The currently active $domain array, provided by domain_lookup().
function domain_goto($domain) {
global $_domain;
// We must be on the proper domain, see http://drupal.org/node/186153.
if ($domain != -1 && $_domain['domain_id'] != $domain['domain_id']) {
$path = domain_get_uri($domain);
drupal_goto($path);
}
}