function uc_product_field_delete_instance in Ubercart 7.3
Implements hook_field_delete_instance().
Resets a content type's default image field setting when that field instance is removed.
File
- uc_product/
uc_product.module, line 990 - The product module for Ubercart.
Code
function uc_product_field_delete_instance($instance) {
if ($instance['entity_type'] == 'node' && $instance['field_name'] == variable_get('uc_image_' . $instance['bundle'], NULL)) {
variable_del('uc_image_' . $instance['bundle']);
}
}