You are here

function access_grant_load_multiple in Access Control Kit 7

Loads multiple access grants by ID.

Parameters

array|false $gids: An array of grant IDs, or FALSE to load all grants.

bool $reset: (optional) Whether to reset the internal cache. Defaults to FALSE.

Return value

array An array of access grants indexed by their IDs. When no results are found, returns an empty array.

See also

entity_load()

8 calls to access_grant_load_multiple()
AccessGrantFunctionTest::testGrantCRUD in ./access.test
Test basic create, read, update, and delete functions.
AccessGrantFunctionTest::testGrantRender in ./access.test
Test the access grant rendering functions.
AccessGrantFunctionTest::testGrantStaticReset in ./access.test
Ensure that the access grant static reset works correctly.
AccessGrantInterfaceTest::testGrantOverviewEmpty in ./access.test
Test the grant overview with no grants.
access_admin_grants in ./access_grants.admin.inc
Form constructor for the grant admin form.

... See full list

File

./access.module, line 170
The access control kit module.

Code

function access_grant_load_multiple($gids = FALSE, $reset = FALSE) {
  return entity_load('access_grant', $gids, array(), $reset);
}