function domain_reset_domain in Domain Access 6.2
Same name and namespace in other branches
- 7.3 domain.module \domain_reset_domain()
- 7.2 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
4 calls to domain_reset_domain()
- domain_content_form in domain_content/
domain_content.admin.inc - Rewrites node_admin_nodes() to use db_rewrite_sql().
- domain_cron in ./
domain.module - Implement hook_cron()
- domain_prefix_configure_form in domain_prefix/
domain_prefix.admin.inc - FormsAPI for generating the configuration form
- domain_prefix_form in domain_prefix/
domain_prefix.admin.inc - The table prefixing page for a domain.
File
- ./
domain.module, line 1219 - 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);
}
}