You are here

function domain_get_uri in Domain Access 6.2

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

Determine an absolute path to the current page

Parameters

$domain: The currently active $domain array, provided by domain_lookup().

Return value

The absolute url to the current page on the requested domain.

9 calls to domain_get_uri()
domain_alias_domainview in domain_alias/domain_alias.module
Implement hook_domainview().
domain_alias_init in domain_alias/domain_alias.module
Implement hook_init().
domain_block in ./domain.module
Implement hook_block()
domain_goto in ./domain.module
Determine if we must switch the active domain.
domain_init in ./domain.module
Implement hook_init().

... See full list

1 string reference to 'domain_get_uri'
domain_nav_render in domain_nav/domain_nav.module
Renders output for the block.

File

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

Code

function domain_get_uri($domain) {
  $request_uri = request_uri();
  $modules = _domain_path_modules();
  if (!empty($modules) && !drupal_is_front_page()) {

    // If needed, let modules modify the path alias.
    $request_uri = base_path() . domain_path($domain['domain_id'], $_GET['q']);
  }
  $path = domain_check_scheme($domain['scheme']) . '://' . $domain['subdomain'] . $request_uri;
  return $path;
}