hook_domainpath

Versions
domain
hook_domainpath($domain_id, &$path, $path_language = '')

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.

See also

domain_prefix_init()

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.

Related topics

Code

./API.php, line 672

<?php
function hook_domainpath($domain_id, &$path, $path_language = '') {
  // Give a normal path alias
  $path = drupal_get_path_alias($path);
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List