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.
This access rule plugin checks entity existence (this means entity ID existence).
Comment | File | Size | Author |
---|---|---|---|
#4 | ctools-entity_exists-2183587-4.patch | 2.19 KB | maximpodorov |
Comments
Comment #1
maximpodorov CreditAttribution: maximpodorov commentedComment #2
maximpodorov CreditAttribution: maximpodorov commentedThis is the same as in
https://drupal.org/project/ctools_entity_exists
module.
Comment #3
andypostSuppose better check_plain($entity[label])
!empty($entity->{$info['entity keys']['id']}) should be enough
Comment #4
maximpodorov CreditAttribution: maximpodorov commentedYour fixes are applied.
Comment #6
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 5 year old patch in #4 to entity_exists.inc still applies cleanly to the latest ctools 7.x-1.x-dev, but needs to be officially reviewed and tested by the community.
Applied patch plugins/access/entity_exists.inc cleanly.