2 * Implements hook_field_attach_delete_bundle().
4 function {{ machine_name }}_field_attach_delete_bundle($entity_type, $bundle, $instances) {
5 // Remove the extra weights variable information for this bundle.
6 $extra_weights = variable_get('field_extra_weights', array());
7 if (isset($extra_weights[$entity_type][$bundle])) {
8 unset($extra_weights[$entity_type][$bundle]);
9 variable_set('field_extra_weights', $extra_weights);