function _domain_bootstrap_modules_get in Domain Access 6.2
Same name and namespace in other branches
- 7.3 domain.bootstrap.inc \_domain_bootstrap_modules_get()
- 7.2 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 164 - Domain bootstrap file.
Code
function _domain_bootstrap_modules_get() {
global $conf;
$key = 'domain_bootstrap_modules';
$table = domain_get_primary_table('variable');
$result = db_result(db_query("SELECT value FROM {$table} WHERE name = '%s'", $key));
if (!empty($result)) {
$conf[$key] = unserialize($result);
}
else {
$conf[$key] = array(
'domain',
);
}
return $conf[$key];
}