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.
Feeds adds the feed_nid property to entities in feeds_entity_load(). Declaring this property in hook_entity_info_alter() makes that property more access to other modules like Rules. I will post a patch.
Comment | File | Size | Author |
---|---|---|---|
#1 | feeds_entity_property_info_alter_1424992_1.patch | 811 bytes | stevector |
Comments
Comment #1
stevectorHere's the patch. It currently only adds the feed_nid to the node entity. It should probably be added to any importable entity type. Is there an easy way to determine which entity types are importable?
Comment #2
johnvPerhaps this issue is related: #1661014: feeds_entity_load() called too often / is not cached.
Comment #3
twistor CreditAttribution: twistor commentedhttp://drupalcode.org/project/feeds.git/commit/054a397
The feed_nid property is set for all supported entities in hook_entity_property_info_alter().