function domain_default_id in Domain Access 7.3
Same name and namespace in other branches
- 7.2 domain.module \domain_default_id()
Return the id of the default domain.
Utility function for checking the default domain id; returns only the 'domain_id' element of the default domain array.
Return value
The domain_id of the default domain.
17 calls to domain_default_id()
- DomainNodeHandler::prepare in ./
domain.migrate.inc - DomainSourceTest::testDomainSourceForm in domain_source/
tests/ domain_source.test - DomainSourceTest::testDomainSourceSave in domain_source/
tests/ domain_source.test - DomainSwitchingTest::testDomainSwitching in tests/
domain.test - DomainUnitTest::testDomainGetNodeDomains in tests/
domain.test
File
- ./
domain.module, line 1186 - Core module functions for the Domain Access suite.
Code
function domain_default_id() {
$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);
$id = $default['domain_id'];
}
return $id;
}