domain_path

Versions
domain
domain_path($domain_id, $path, $path_language = '')

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 functions call 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().

Code

./domain.module, line 2282

<?php
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;
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List