You are here

function tca_delete_variables in Token Content Access 7

Deletes variables associated with an entity type and bundle.

This should be executed when a module in uninstalled or a bundle is deleted.

2 calls to tca_delete_variables()
tca_modules_uninstalled in ./tca.module
Implements hook_modules_uninstalled().
tca_node_node_type_delete in tca_node/tca_node.module
Implements hook_node_type_delete().

File

./tca.module, line 447
The Token Content Access module file.

Code

function tca_delete_variables($entity_type, $bundle) {
  variable_del('tca_' . $entity_type . '_active_' . $bundle);
}