You are here

function hook_workbench_access_delete in Workbench Access 7

Responds to the deletion of a Workbench Access section.

This hook fires whenever we delete an access control section. Note that this hook fires _before_ the base tables are cleared, in case you need to retrieve data from those tables.

Parameters

$section: Section data as defined by hook_workbench_access_info().

1 invocation of hook_workbench_access_delete()
workbench_access_section_delete in ./workbench_access.module
Delete an access section from the {workbench_access} table.

File

./workbench_access.api.php, line 370
API documentation file for Workbench Access.

Code

function hook_workbench_access_delete($section) {

  // Notify our module if the section is related to taxonomy.
  if ($section['access_type'] == 'taxonomy') {
    mymodule_delete_something();
  }
}