function domain_load in Domain Access 7.3
Same name and namespace in other branches
- 6.2 domain.module \domain_load()
- 7.2 domain.module \domain_load()
Menu loader function.
Note that this function should only be used as a menu callback, since the results are not cached. Use domain_lookup() instead.
The passed parameter will be checked against the {domain} table for valid records.
Parameters
$domain_id: The id request for a specific domain.
$reset: A boolean flag to clear the static variable if necessary.
Return value
$domain array on success or FALSE on failure.
7 calls to domain_load()
- DomainNodeHandler::prepare in ./
domain.migrate.inc - DomainSourceTest::testDomainSourceDefaults in domain_source/
tests/ domain_source.test - DomainUserHandler::prepare in ./
domain.migrate.inc - domain_get_content_urls in ./
domain.module - Get all possible published URLs pointing to a node.
- domain_set_domain in ./
domain.module - Set the active domain to something other than the HTTP request.
1 string reference to 'domain_load'
- _domain_bootstrap in ./
domain.bootstrap.inc - Calls individual bootstrap phases.
File
- ./
domain.module, line 923 - Core module functions for the Domain Access suite.
Code
function domain_load($domain_id = NULL, $reset = FALSE) {
$domain = domain_lookup($domain_id, NULL, $reset);
if ($domain == -1) {
return FALSE;
}
return $domain;
}