function domain_load in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain.module \domain_load()
- 7.3 domain.module \domain_load()
Menu loader function.
The passed parameter will be checked against the {domain} table for valid records.
Parameters
$domain_id: The id request for a specific domain.
Return value
$domain array on success or FALSE on failure.
2 calls to domain_load()
- domain_set_domain in ./
domain.module - Set the active domain to something other than the HTTP request.
- domain_theme_form_alter in domain_theme/
domain_theme.module - Implements hook_form_alter().
1 string reference to 'domain_load'
- _domain_bootstrap in ./
domain.bootstrap.inc - Calls individual bootstrap phases.
File
- ./
domain.module, line 746 - Core module functions for the Domain Access suite.
Code
function domain_load($domain_id = NULL) {
$domain = domain_lookup($domain_id);
if ($domain == -1) {
return FALSE;
}
else {
return $domain;
}
}