You are here

function _domain_bootstrap_modules_get in Domain Access 7.2

Same name and namespace in other branches
  1. 6.2 domain.bootstrap.inc \_domain_bootstrap_modules_get()
  2. 7.3 domain.bootstrap.inc \_domain_bootstrap_modules_get()

Retrieves the value of the variable 'domain_bootstrap_modules' from the {variable} table. This function does not use Drupal's variable system.

Return value

An array containing module names.

1 call to _domain_bootstrap_modules_get()
_domain_bootstrap_modules in ./domain.bootstrap.inc
Returns a list of modules which are loaded during domain_bootstrap phases.

File

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

Code

function _domain_bootstrap_modules_get() {
  global $conf;
  $key = 'domain_bootstrap_modules';
  $table = domain_get_primary_table('variable');
  $result = db_query("SELECT value FROM {$table} WHERE name = :name", array(
    ':name' => $key,
  ))
    ->fetchField();
  if (!empty($result)) {
    $conf[$key] = unserialize($result);
  }
  else {
    $conf[$key] = array(
      'domain',
    );
  }
  return $conf[$key];
}