Act on field_attach_delete_bundle.
This hook is invoked after the field module has performed the operation.
$entity_type: The type of entity; for example, 'node' or 'user'.
$bundle: The name of the bundle that was just deleted.
$instances: An array of all instances that existed for the bundle before it was deleted.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_field_attach_delete_bundle($entity_type, $bundle, $instances) {
// Remove the extra weights variable information for this bundle.
$extra_weights = variable_get('field_extra_weights', array());
if (isset($extra_weights[$entity_type][$bundle])) {
unset($extra_weights[$entity_type][$bundle]);
variable_set('field_extra_weights', $extra_weights);
}
}