You are here

function _simple_access_filter_access in Simple Access 7.2

Same name and namespace in other branches
  1. 8.3 simple_access.module \_simple_access_filter_access()
  2. 5.2 simple_access.module \_simple_access_filter_access()
  3. 5 simple_access.module \_simple_access_filter_access()
  4. 6.2 simple_access.module \_simple_access_filter_access()

Filter the access records for the current user.

1 string reference to '_simple_access_filter_access'
simple_access_form in ./simple_access.module
Simple Access form.

File

./simple_access.module, line 808
This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.

Code

function _simple_access_filter_access($a) {
  $groups = simple_access_group_select();
  return isset($a['gid']) && isset($groups[$a['gid']]['access']) && $groups[$a['gid']]['access'];
}