domain_api($domain)
domain.module, line 534
Helper function for passing hook_domainload() by reference.
$domain The domain array defined by domain_lookup().
The $domain array, modified by reference by hook_domainload() implementations.
function domain_api($domain) {
static $_modules;
if (!isset($_modules)) {
$_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;
}