Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While working on http://drupal.org/project/commerce_price_history, I found out the hard way (well, not really that hard) that hook_field_purge_field_instance()
is actuallly hook_field_purge_instance()
.
Relevant part from field.crud.inc:
function field_purge_instance($instance) {
...
// Invoke external hooks after the cache is cleared for API consistency.
module_invoke_all('field_purge_instance', $instance);
}
Confusing part in field.api.php:
function hook_field_purge_field_instance($instance) {
...
}
Patch coming up in #1, `nuff said :)
Comment | File | Size | Author |
---|---|---|---|
#1 | 1320576-hook_field_purge_field_instance_does_not_exist.patch | 500 bytes | amateescu |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedAnd the patch.
Comment #2
Deciphered CreditAttribution: Deciphered commentedPatch is sane, research checks out.
Marking as RTBC.
Comment #3
xjmI grepped and confirmed this is the only reference to the fake hook name:
Comment #4
catchCommitted and pushed to 8.x. Moving to 7.x
Comment #5
webchickCommitted and pushed to 7.x. Thanks!