This idea came from #353105: Provide rules integration.

When I use the devel module to see the values on a feed item, I see:

feedapi_node (Object) stdClass

* nid (String, 3 characters ) 280
* url (String, 62 characters ) http://example.com/blog/post
* timestamp (String, 10 characters ) 1230744840
* arrived (String, 10 characters ) 1230789015
* guid (String, 59 characters ) tag:blogger.com,1999:blog-14998306.post-8063531...
o
tag:blogger.com,1999:blog-14998306.post-8063531075217432200
* feed_nids (Array, 1 element)
o
242 (String, 3 characters ) 242

If the feed_nids value was available as a token, I think rules could use that token when saving a feed_item to load the feed node from which it came.

CommentFileSizeAuthor
#2 feedapi_353340.patch3.4 KBdrewish

Comments

drewish’s picture

subscribing... i'll probably end up needing to write this at least for feed items.

drewish’s picture

Status: Active » Needs review
StatusFileSize
new3.4 KB

mitchell, i think you're going to have a problem using that because there could be multiple parents to the feed item. i guess you could add a token that just pulled the first parent if there was one.

Here's some really basic token support that can serve as a starting for for further enhancements.