domain_set_domain($domain_id, $bootstrap = FALSE)Set the active domain to something other than the HTTP request.
This function is used in cases where you wish to similuate the loading of a domain while on another domain.
$domain_id The domain id of the domain to load.
$bootstrap Boolean flag that indicates whether to run domain bootstrap load.
No return value. The global $_domain value is altered, and domain-specific data functions are loaded.
./domain.module, line 966
<?php
function domain_set_domain($domain_id, $bootstrap = FALSE) {
global $_domain;
$_domain = domain_load($domain_id);
// Now re-run the bootstrap.
if ($bootstrap) {
_domain_bootstrap_invoke_all('full', $_domain);
}
}
?>