You are here

function hook_access_scheme_delete in Access Control Kit 7

Responds to access scheme deletion.

This hook is invoked from AccessSchemeEntityController::delete() after the database query that will delete the scheme from the access_scheme table is scheduled for execution, but before the transaction actually completes and the scheme is removed from the database.

Parameters

object $scheme: The access scheme that is being deleted.

2 functions implement hook_access_scheme_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

access_access_scheme_delete in ./access.access.inc
Implements hook_access_scheme_delete().
ack_menu_access_scheme_delete in ack_menu/ack_menu.module
Implements hook_access_scheme_delete().
1 invocation of hook_access_scheme_delete()
AccessSchemeEntityController::delete in ./access_scheme_entity_controller.inc
Deletes an access scheme from the database.

File

./access.api.php, line 318
Hooks provided by the access control kit module.

Code

function hook_access_scheme_delete($scheme) {

  // Remove the scheme's audit flag.
  variable_del('access_audit_' . $scheme->machine_name);
}