function hook_domainpath in Domain Access 6.2
Same name and namespace in other branches
- 7.2 domain.api.php \hook_domainpath()
Allows modules to alter path when rewriting URLs.
This hook will fire for all paths and may be resource-intensive. Look at Domain Prefix for best practices implementation. In Domain Prefix, we only include this function if we know it is necessary.
Parameters
$domain_id: The domain_id taken from {domain}.
$path: The internal drupal path to the node.
$path_language: Language code to look up the path in.
See also
domain_prefix_init()
Related topics
1 function implements hook_domainpath()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- domain_prefix_domainpath in domain_prefix/
domain_prefix.path.inc - Implement hook_domainpath().
1 invocation of hook_domainpath()
- _domain_path_modules in ./
domain.module - Helper function for domain_path() checks.
File
- ./
API.php, line 679 - API documentation file.
Code
function hook_domainpath($domain_id, &$path, $path_language = '') {
// Give a normal path alias
$path = drupal_get_path_alias($path);
}