function domain_reset_domain in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain.module \domain_reset_domain()
- 7.3 domain.module \domain_reset_domain()
Reset the active domain to its initial version.
If $bootstrap is set to TRUE, this function will re-bootstrap Domain Access to restore variables and other settings that may have changed during request execution.
If domain_set_domain() invoked TRUE, then this matching function should as well. Otherwise, pass FALSE or empty.
Parameters
$bootstrap: Boolean flag that indicates whether to run domain bootstrap load.
Return value
No return value. The global $_domain value is altered, and domain-specific data functions are loaded.
See also
2 calls to domain_reset_domain()
- domain_content_view in domain_content/
domain_content.admin.inc - Content administration for a specific domain. This callback puts the user on the current domain and then fetches the appropirate content for batch editing.
- domain_cron in ./
domain.module - Implements hook_cron()
File
- ./
domain.module, line 1245 - Core module functions for the Domain Access suite.
Code
function domain_reset_domain($bootstrap = FALSE) {
$domain = domain_initial_domain();
if (!empty($domain)) {
domain_set_domain($domain['domain_id'], $bootstrap);
}
}