function domain_test_domain_bootstrap_lookup in Domain Access 7.3
Implements hook_domain_bootstrap_lookup().
Match 'local.test' to 'newtest.example.com'.
File
- tests/
domain_test.module, line 31 - Test module for Domain Access.
Code
function domain_test_domain_bootstrap_lookup($domain) {
$subdomain = $domain['subdomain'];
if ($subdomain != 'local.test') {
return;
}
$default = domain_default();
$domain = domain_lookup(NULL, 'newtest.' . $default['subdomain'], TRUE);
return $domain;
}