? domain-714986.patch Index: domain.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/domain/domain.module,v retrieving revision 1.134.2.28 diff -u -p -r1.134.2.28 domain.module --- domain.module 19 Jun 2010 18:57:45 -0000 1.134.2.28 +++ domain.module 29 Jul 2010 03:04:16 -0000 @@ -123,6 +123,25 @@ function domain_init() { // Set the site name to the domain-specific name. $conf['site_name'] = $_domain['sitename']; + + // Display message letting user know where they may view this node + $args = arg(); + if ( $args[0] == 'node' + && is_numeric($args[1]) + && empty($args[2]) + && !user_access('administer nodes') + ) { + $node = node_load($args[1]); + if ( !in_array($_domain['domain_id'], $node->domains) + && $node->domain_source != -1 + && $node->domain_source != 0 + ) { + $source = domain_lookup($node->domain_source); + $url = ltrim(url('node/' . $node->nid), '/'); + $link = l($source['sitename'], $source['path'] . $url); + drupal_set_message(t('Content available on !link', array('!link' => $link))); + } + } } /**