Skip to content

Instantly share code, notes, and snippets.

View bradjones1's full-sized avatar
🤓

Brad Jones bradjones1

🤓
View GitHub Profile
<?php
/**
* Temporary function to delete fields attached to entities that have already
* been deleted. This assumes there are no deleted fields that need to be
* purged as this won't actually remove their tables in the database. Use with
* caution and only when fully understanding what this does compared to
* field_purge_batch and field_purge_field_storage.
*/
function _fix_missing_entities_during_field_purge() {