You are here

function domain_get_domain in Domain Access 6.2

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

Return the currently active domain.

This value is stored in a global, but having a function will let us replace that with a static function in D7.

Return value

An array of data defining the currently active domain.

File

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

Code

function domain_get_domain() {
  if (isset($GLOBALS['_domain'])) {
    return $GLOBALS['_domain'];
  }
}