You are here

module_grants_content_access.module in Module Grants 7

Module to add support for the Content Access module. Mostly needed to handle the 'all' realm that the Content Access module generates.

File

module_grants_content_access/module_grants_content_access.module
View source
<?php

/**
 * @file
 * Module to add support for the Content Access module.
 * Mostly needed to handle the 'all' realm that the Content Access module generates.
 */

/**
 * Implement hook_module_grants_realm_function_register
 */
function module_grants_content_access_module_grants_realm_function_register_alter(&$function_registry) {
  $function_registry['content_access'] = function ($realm) {
    return $realm == 'all' || $realm == 'content_access_author' || $realm == 'content_access_rid';
  };
}

Functions

Namesort descending Description
module_grants_content_access_module_grants_realm_function_register_alter Implement hook_module_grants_realm_function_register