You are here

function domain_initial_domain in Domain Access 6.2

Same name and namespace in other branches
  1. 7.3 domain.module \domain_initial_domain()
  2. 7.2 domain.module \domain_initial_domain()

Store the initially loaded domain, for later use.

4 calls to domain_initial_domain()
domain_form_alter in ./domain.module
Implement hook_form_alter()
domain_init in ./domain.module
Implement hook_init().
domain_nodeapi in ./domain.module
Implement hook_nodeapi().
domain_reset_domain in ./domain.module
Reset the active domain to its initial version.

File

./domain.module, line 130
Core module functions for the Domain Access suite.

Code

function domain_initial_domain($domain = array()) {
  static $initial;
  if (!isset($initial) && !empty($domain)) {
    $initial = $domain;
  }
  return $initial;
}