function _domain_bootstrap_modules in Domain Access 6.2
Same name and namespace in other branches
- 7.3 domain.bootstrap.inc \_domain_bootstrap_modules()
- 7.2 domain.bootstrap.inc \_domain_bootstrap_modules()
Returns a list of modules which are loaded during domain_bootstrap phases.
The domain module is always in the list of modules and has weight -99 so it should usually be first one as well.
Parameters
$reset: If set to TRUE the cached list of modules is updated with the value from the {variable} table again. Default value is FALSE. Optional.
Return value
An array of module names.
3 calls to _domain_bootstrap_modules()
- domain_lookup_simple in ./
domain.module - Determines a domain_id matching given $_name.
- _domain_bootstrap_invoke_all in ./
domain.bootstrap.inc - Tries to call specified hook on all domain_bootstrap modules.
- _domain_bootstrap_modules_load in ./
domain.bootstrap.inc - Tries to load all domain bootstrap modules.
File
- ./
domain.bootstrap.inc, line 131 - Domain bootstrap file.
Code
function _domain_bootstrap_modules($reset = FALSE) {
static $modules = NULL;
if ($reset || is_null($modules)) {
$modules = _domain_bootstrap_modules_get();
if (!is_array($modules)) {
$modules = array();
}
if (!in_array('domain', $modules)) {
$modules['-99'] = 'domain';
}
ksort($modules);
}
return $modules;
}