function domain_path in Domain Access 6.2
Same name and namespace in other branches
- 7.3 domain.module \domain_path()
- 7.2 domain.module \domain_path()
Helper function for passing hook_domainpath() by reference.
Parameters
$domain_id: The domain_id taken from {domain}.
$path: The internal drupal path to the node.
$path_language: Optional language code to look up the path in.
Return value
The $path, modified by reference by hook_domainpath() implementations.
2 calls to domain_path()
- domain_get_uri in ./
domain.module - Determine an absolute path to the current page
- domain_url_outbound_alter in ./
settings_custom_url.inc - Implement hook_url_outbound_alter().
File
- ./
domain.module, line 2639 - Core module functions for the Domain Access suite.
Code
function domain_path($domain_id, $path, $path_language = '') {
$modules = _domain_path_modules();
if (!empty($modules)) {
foreach ($modules as $module) {
// Cannot use module_invoke_all() since these are passed by reference.
$function = $module . '_domainpath';
$function($domain_id, $path, $path_language);
}
}
return $path;
}