function domain_path_url_inbound_alter in Domain Path 6
Same name and namespace in other branches
- 7 domain_path.module \domain_path_url_inbound_alter()
Implements hook_url_inbound_alter().
File
- ./
domain_path.module, line 55 - Path alias handling for multiple domains.
Code
function domain_path_url_inbound_alter(&$path, $original_path, $path_language) {
$domain = domain_get_domain();
$did = $domain['domain_id'];
$paths = domain_path_paths('alias');
if (!isset($paths[$original_path][$did])) {
return;
}
$path = $paths[$original_path][$did];
}