function field_collection_field_delete_field in Field collection 7
Implements hook_field_delete_field().
File
- ./
field_collection.module, line 1873 - Module implementing field collection field type.
Code
function field_collection_field_delete_field($field) {
if ($field['type'] === 'field_collection') {
// Notify field.module that field collection was deleted.
field_attach_delete_bundle('field_collection_item', $field['field_name']);
// Clear caches.
entity_info_cache_clear();
// Do not directly issue menu rebuilds here to avoid potentially multiple
// rebuilds. Instead, let menu_get_item() issue the rebuild on the next
// request.
variable_set('menu_rebuild_needed', TRUE);
}
}