function domain_path in Domain Access 7.3
Same name and namespace in other branches
- 6.2 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.
3 calls to domain_path()
- domain_get_content_urls in ./
domain.module - Get all possible published URLs pointing to a node.
- domain_get_uri in ./
domain.module - Determine an absolute path to the current page.
- domain_url_outbound_alter in ./
settings_custom_url.inc - Implements hook_url_outbound_alter().
File
- ./
domain.module, line 3314 - Core module functions for the Domain Access suite.
Code
function domain_path($domain_id, &$path, &$options, $original_path) {
$modules = _domain_path_modules();
if (!empty($modules)) {
foreach ($modules as $module) {
// Cannot use module_invoke_all() since these are passed by reference.
$function = $module . '_domain_path';
$function($domain_id, $path, $options, $original_path);
}
}
}