You are here

function domain_views_query_substitutions in Domain Access 5

Substitute current domain; this works with cached queries.

File

domain_views/domain_views.module, line 126
Provides a Views filter for the Domain Access module.

Code

function domain_views_query_substitutions($view) {
  return array(
    '***CURRENT_DOMAIN***' => $GLOBALS['_domain']['domain_id'],
  );
}