_domain_bootstrap_invoke_all()Tries to call specified hook on all domain_bootstrap modules.
The hook function names are of the following format: {$module}_domain_bootstrap_{$hook} where {$module} is the name of the module implementing the hook and {$hook} is the identifier for the concrete domain bootstrap hook.
This function is basically a copy of module_invoke_all() adjusted to our needs.
... Arguments to pass to the hook.
@link http://api.drupal.org/api/function/module_invoke_all/6
$hook The name of the bootstrap hook to invoke.
./domain.bootstrap.inc, line 192
<?php
function _domain_bootstrap_invoke_all() {
$args = func_get_args();
$hook = $args[0];
unset($args[0]);
$return = array();
foreach (_domain_bootstrap_modules() as $module) {
$function = $module .'_domain_bootstrap_'. $hook;
if (function_exists($function)) {
$result = call_user_func_array($function, $args);
if (isset($result) && is_array($result)) {
$return = array_merge_recursive($return, $result);
}
else if (isset($result)) {
$return[] = $result;
}
}
}
return $return;
}
?>