You are here

function auto_entitylabel_field_attach_delete_bundle in Automatic Entity Label 7

Implements hook_field_attach_delete_bundle().

File

./auto_entitylabel.module, line 468
Allows hiding of entity label fields and automatic label creation.

Code

function auto_entitylabel_field_attach_delete_bundle($entity_type, $bundle, $instances) {
  static $variables = array(
    'auto_entitylabel',
    'auto_entitylabel_pattern',
    'auto_entitylabel_php',
  );
  foreach ($variables as $variable) {
    variable_del($variable . '_' . $entity_type . '_' . $bundle);
  }
}