You are here

function domain_resolve_host in Domain Access 6.2

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

Tries to match the current (host) domain name to a domain in the {domain} table and returns a respective domain_id.

Parameters

$name: The domain name to match against. Optional.

Return value

An array containing a domain_id matching the current domain name.

1 call to domain_resolve_host()
_domain_bootstrap in ./domain.bootstrap.inc
Calls individual bootstrap phases.

File

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

Code

function domain_resolve_host($name = '') {
  if (empty($name)) {
    $name = domain_request_name();
  }
  return domain_lookup_simple($name);
}