domain_get_uri

Versions
domain
domain_get_uri($domain)

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 functions call 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().
domain_view in ./domain.admin.inc
The main administration page, a list of active domains.
domain_warning_check in ./domain.module
Sets a message to the site admin.
theme_domain_alias_block in domain_alias/domain_alias.module
Theme element for the Domain Alias switcher block.
_domain_alias_link in domain_alias/domain_alias.module

Code

./domain.module, line 1056

<?php
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.
    $alias = domain_path($domain['domain_id'], $_GET['q']);
    // Run the result through url() for proper language and path handling.
    $request_uri = url($alias);
  }

  $path = check_url($domain['scheme'] .'://'. $domain['subdomain'] . $request_uri);
  return $path;
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List