function rh_field_collection_field_delete_field in Rabbit Hole 7.2
Implements hook_field_delete_field().
File
- modules/
rh_field_collection/ rh_field_collection.module, line 78 - Main module file for Rabbit Hole field collections module.
Code
function rh_field_collection_field_delete_field($field) {
if ($field['type'] == 'field_collection') {
// Delete variables connected to this field collection.
rabbit_hole_delete_variables('field_collection_item', $field['field_name']);
}
}