function domain_source_domain_source_alter in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain_source/domain_source.module \domain_source_domain_source_alter()
- 7.3 domain_source/domain_source.domain.inc \domain_source_domain_source_alter()
Implements hook_domain_source_alter().
Parameters
&$source: The domain array from domain_get_node_match(), passed by reference.
$nid: The node id.
Return value
No return value; modify $source by reference.
File
- domain_source/
domain_source.module, line 353 - Creates a source domain for linking to content from other domains.
Code
function domain_source_domain_source_alter(&$source, $nid) {
$source = domain_source_lookup($nid);
}