You are here

function domain_alias_domainload in Domain Access 6.2

Same name and namespace in other branches
  1. 7.2 domain_alias/domain_alias.module \domain_alias_domainload()

Implement hook_domainload()

Adds a list of all aliases for the current domain.

File

domain_alias/domain_alias.module, line 299
Interface for advanced domain matching for Domain Access.

Code

function domain_alias_domainload(&$domain) {

  // Get the domain aliases
  $domain['aliases'] = domain_alias_list($domain['domain_id']);
  if (isset($domain['active_alias_id'])) {
    $domain['aliases'][$domain['active_alias_id']]['active'] = TRUE;
  }
}