You are here

function domain_get_path_match in Domain Access 6.2

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

Allow the lookup of path rewrites.

Note that unlike domain_get_node_match(), this function assumes that all links will be written to the current domain.

Parameters

$path: The link path.

Return value

The domain array for the best matching domain for links to this node.

1 call to domain_get_path_match()
domain_url_outbound_alter in ./settings_custom_url.inc
Implement hook_url_outbound_alter().

File

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

Code

function domain_get_path_match($path) {
  global $_domain;
  $source = $_domain;
  drupal_alter('domain_source_path', $source, $path);
  return $source;
}