You are here

function _domain_bootstrap_modules in Domain Access 7.3

Same name and namespace in other branches
  1. 6.2 domain.bootstrap.inc \_domain_bootstrap_modules()
  2. 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.

6 calls to _domain_bootstrap_modules()
DomainHookTest::testDomainHooks in tests/domain.test
DomainTestCase::setUp in tests/domain.test
On setup, install our module and create a default domain.
domain_api in ./domain.module
Helper function for passing hook_domain_load() by reference.
domain_lookup_simple in ./domain.module
Determines the domain matching the given hostname.
_domain_bootstrap_invoke_all in ./domain.bootstrap.inc
Tries to call specified hook on all domain_bootstrap modules.

... See full list

1 string reference to '_domain_bootstrap_modules'
domain_api in ./domain.module
Helper function for passing hook_domain_load() by reference.

File

./domain.bootstrap.inc, line 167
Domain bootstrap file.

Code

function _domain_bootstrap_modules($reset = FALSE) {
  $modules =& drupal_static(__FUNCTION__, 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;
}