You are here

function access_grant_delete in Access Control Kit 7

Deletes an access grant.

Parameters

int $gid: The grant ID.

Return value

int Status constant indicating deletion.

See also

AccessGrantEntityController::delete()

6 calls to access_grant_delete()
AccessGrantFunctionTest::testGrantCRUD in ./access.test
Test basic create, read, update, and delete 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.
AccessSchemeEntityController::delete in ./access_scheme_entity_controller.inc
Deletes an access scheme from the database.
access_grant_delete_confirm_submit in ./access_grants.admin.inc
Form submission handler for access_grant_delete_confirm().

... See full list

1 string reference to 'access_grant_delete'
access_hook_info in ./access.module
Implements hook_hook_info().

File

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

Code

function access_grant_delete($gid) {
  $controller = entity_get_controller('access_grant');
  $status = $controller
    ->delete($gid);
  $controller
    ->resetCache();
  return $status;
}