You are here

function domain_test_domain_references_alter in Domain Access 8

Implements hook_domain_references_alter().

File

domain/tests/modules/domain_test/domain_test.module, line 55
Domain hook test module.

Code

function domain_test_domain_references_alter($query, $account, $context) {
  if ($context['entity_type'] == 'node') {
    $test = 'Test string';
    $query
      ->addMetadata('domain_test', $test);
  }
}