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.
Problem: ctools_entity_from_field_context() invokes entity access callbacks directly in a hacky way. It does not pass the required $entity_type parameter and therefore causes PHP warnings.
Solution: use entity_access() instead and pass along the entity type.
Comment | File | Size | Author |
---|---|---|---|
#1 | ctools-entity-access-2204889-1.patch | 1.13 KB | klausi |
Comments
Comment #1
klausiPatch attached. Unfortunately I had to combine it with the patch from #2195471: Only variables should be passed by reference in ctools_entity_from_field_context, because the 2 changes are so close together.
Comment #2
japerryCtools does not depend on the entity module. Therefore this patch won't work. However, good news -- we have it rolled in for #2195211: Warning after update: Missing argument 4 for entity_metadata_taxonomy_access
Marking as a duplicate.