domain_set_domain

Versions
domain
domain_set_domain($domain_id, $bootstrap = FALSE)

Set the active domain to something other than the HTTP request.

This function is used in cases where you wish to similuate the loading of a domain while on another domain.

Parameters

$domain_id The domain id of the domain to load.

$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.

▾ 4 functions call domain_set_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
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.

Code

./domain.module, line 966

<?php
function domain_set_domain($domain_id, $bootstrap = FALSE) {
  global $_domain;
  $_domain = domain_load($domain_id);
  // Now re-run the bootstrap.
  if ($bootstrap) {
    _domain_bootstrap_invoke_all('full', $_domain);
  }
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List