domain_api($domain, $reset = FALSE)Helper function for passing hook_domainload() by reference.
$domain The domain array defined by domain_lookup().
$reset A boolean flag to clear the static variable if necessary.
The $domain array, modified by reference by hook_domainload() implementations.
./domain.module, line 937
<?php
function domain_api($domain, $reset = FALSE) {
static $_modules;
if (!isset($_modules) || $reset) {
$_modules = module_implements('domainload');
}
if (!empty($_modules)) {
foreach ($_modules as $module) {
// Cannot use module_invoke_all() since these are passed by reference.
$function = $module .'_domainload';
$function($domain);
}
}
return $domain;
}
?>