function domain_resolve_host in Domain Access 7.3
Same name and namespace in other branches
- 6.2 domain.module \domain_resolve_host()
- 7.2 domain.module \domain_resolve_host()
Resolve an HTTP_HOST to a registered domain.
Tries to match the current HTTP_HOST 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 2964 - 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);
}