You are here

function domain_views_data_alter in Domain Access 8

Implements hook_views_data_alter().

File

domain/domain.module, line 135
Defines a Domain concept for use with Drupal.

Code

function domain_views_data_alter(array &$data) {
  $table = 'user__' . DomainInterface::DOMAIN_ADMIN_FIELD;

  // Since domains are not stored in the database, relationships cannot be used.
  unset($data[$table][DomainInterface::DOMAIN_ADMIN_FIELD]['relationship']);
}