You are here

function domain_domainload in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain.module \domain_domainload()
  2. 7.2 domain.module \domain_domainload()

Implement hook_domainload()

Adds the home page 'path' and 'site_grant' boolean.

File

./domain.module, line 1268
Core module functions for the Domain Access suite.

Code

function domain_domainload(&$domain) {

  // Get the path to the home page for this domain.
  $domain['path'] = domain_get_path($domain);

  // Grant access to all affiliates.
  $domain['site_grant'] = DOMAIN_SITE_GRANT;
}