_domain_bootstrap_modules

Versions
domain
_domain_bootstrap_modules($reset = FALSE)

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.

Code

./domain.bootstrap.inc, line 127

<?php
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;
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List