domain_bootstrap_unregister

Versions
domain
domain_bootstrap_unregister($name)

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.

Code

./domain.module, line 1892

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

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List