function domain_get_path_match in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain.module \domain_get_path_match()
- 7.3 domain.module \domain_get_path_match()
Allow the lookup of path rewrites.
Note that unlinke 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 
- Implements hook_url_outbound_alter().
File
- ./domain.module, line 1560 
- Core module functions for the Domain Access suite.
Code
function domain_get_path_match($path) {
  $_domain = domain_get_domain();
  // When using modules that alter the path, this can be called before the
  // domain path is loaded. See http://drupal.org/node/1193338.
  if (!isset($_domain['path'])) {
    $_domain = domain_lookup($_domain['domain_id'], NULL, TRUE);
  }
  $source = $_domain;
  drupal_alter('domain_source_path', $source, $path);
  return $source;
}