function domain_bootstrap_unregister in Domain Access 6.2
Removes a module so it is not loaded during domain_bootstrap.
This function should be called from within hook_disable() implementations.
Parameters
$name: The name of the module that is un-registered.
3 calls to domain_bootstrap_unregister()
- domain_alias_disable in domain_alias/
domain_alias.module - Implement hook_disable().
- domain_conf_disable in domain_conf/
domain_conf.module - Implement hook_disable().
- domain_prefix_disable in domain_prefix/
domain_prefix.module - Implement hook_disable().
File
- ./
domain.module, line 2224 - Core module functions for the Domain Access suite.
Code
function domain_bootstrap_unregister($name) {
$modules = variable_get('domain_bootstrap_modules', array());
if (is_array($modules)) {
foreach ($modules as $k => $v) {
if ($v == $name) {
unset($modules[$k]);
}
}
}
variable_set('domain_bootstrap_modules', $modules);
}