We need a relationship to the source node on Views of type "Fast feed".

Field feed_nid of {feeds_data_feed_fast} should link with nid from {node}.

While hook_views_data() is implemented in "data" module I wonder if there's a way to accomplish this... Maybe an alter hook for Views data...

Comments

claudiu.cristea’s picture

Assigned: Unassigned » claudiu.cristea
Status: Active » Needs review
StatusFileSize
new1.48 KB

Found that Views data defined with hook_views_data() can be altered with hook_views_data_alter(). So I intercepted this in feeds_fast_news module.

Here's a patch against DRUPAL-6--1.

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

This is just the patch I was looking for. Worked as expected on my dev & live site. Thanks.

eelco_van_asperen’s picture

Thanks a lot for this patch: solved a problem I was having with the fast feed table and creating a view that includes the name of the feed (i.e. Title of the Fast Feed node).

jonhattan’s picture

It works. There's a typo in the code:

+ *   Views data definitikn array.

btw I guess a general solution to make this relationship available to any feed using data processor is possible.

dave reid’s picture

Status: Reviewed & tested by the community » Needs work

We also no longer use CVS ID tags ($Id$) so those should be removed.

twistor’s picture

Assigned: claudiu.cristea » Unassigned
Issue summary: View changes
Status: Needs work » Closed (outdated)