You are here

function rabbit_hole_delete_variables in Rabbit Hole 7.2

Deletes variables associated with an entity type and bundle.

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

8 calls to rabbit_hole_delete_variables()
rabbit_hole_modules_uninstalled in ./rabbit_hole.module
Implements hook_modules_uninstalled().
rh_bean_bean_admin_ui_type_op_confirm_submit in modules/rh_bean/rh_bean.module
Custom submit handler for the bean type delete confirm form.
rh_field_collection_field_delete_field in modules/rh_field_collection/rh_field_collection.module
Implements hook_field_delete_field().
rh_file_file_type_delete in modules/rh_file/rh_file.module
Implements hook_file_type_delete().
rh_node_node_type_delete in modules/rh_node/rh_node.module
Implements hook_node_type_delete().

... See full list

File

./rabbit_hole.module, line 606
Main module file for Rabbit Hole.

Code

function rabbit_hole_delete_variables($entity_type, $bundle) {
  foreach (rabbit_hole_get_variables($entity_type, $bundle) as $rh_variable) {
    variable_del($rh_variable);
  }
}