function domain_default_machine_name in Domain Access 7.3
Return the machine_name of the default domain.
Return value
The machine_name of the default domain.
2 calls to domain_default_machine_name()
- DomainSourceTest::testDomainSourceForm in domain_source/
tests/ domain_source.test - DomainUnitTest::testDomainGetNodeDomains in tests/
domain.test
File
- ./
domain.module, line 1203 - Core module functions for the Domain Access suite.
Code
function domain_default_machine_name() {
$id =& drupal_static(__FUNCTION__);
if (!isset($id)) {
// Do not allow domain_api() to run here, else we break the registry.
// See http://drupal.org/node/1140898.
$default = domain_default(FALSE, FALSE);
$machine_name = $default['machine_name'];
}
return $machine_name;
}