You are here

function _domain_views_alter_grants in Domain Views 7

Helper function to hook_domaingrants(). This should be replaced by a drupal_alter().

1 call to _domain_views_alter_grants()
domain_views_get_grants in ./domain_views.module
Helper function to return the node grants for this user.

File

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

Code

function _domain_views_alter_grants(&$grants, $account, $op) {
  static $_modules;
  if (!isset($_modules)) {
    $_modules = module_implements('node_grants_alter');
  }
  if (!empty($_modules)) {
    foreach ($_modules as $module) {

      // Cannot use module_invoke_all() since these are passed by reference.
      $function = $module . '_node_grants_alter';
      $function($grants, $account, $op);
    }
  }
}