function workbench_access_taxonomy_vocabulary_delete in Workbench Access 7
Implements hook_taxonomy_vocabulary_delete().
If an active vocabulary is deleted, cascade the change through our system.
File
- modules/
taxonomy.workbench_access.inc, line 393 - Taxonomy integration for Workbench Access.
Code
function workbench_access_taxonomy_vocabulary_delete($vocabulary) {
$access_scheme = db_query("SELECT * FROM {workbench_access} WHERE access_type = :access_type AND access_id = :access_id", array(
':access_type' => 'taxonomy',
':access_id' => $vocabulary->machine_name,
))
->fetchAssoc();
if (!empty($access_scheme)) {
workbench_access_section_delete($access_scheme);
}
}