After installing feeds_social (6.x-1.x-dev (2010-aug-03)) I noticed that the feeds_news importer suddenly disappeared from admin/build/feeds
Having just created my own parser and importer specifically for Youtube videos I tracked this down to the fact that the key "feed" in the array $export in _feeds_social_feeds_importer_default (line 103 in feeds_social.defaults.inc) overrides the importer defined in feeds_news which also uses the key "feed" in the $export array for the same hook. I guess these two (and other arrays coming from any other hook implementation) get merged somewhere inside ctools or elsewhere, making one (or more) of the entries disappear if the keys match.
I've attached a patch that I think fixes the problem. Seeing as the Facebook importer used the key "feed2" I reckon the key is not of much importance other than being unique, so I fixed that one too.
Do note that I did some formatting as well, so the patch might look a bit overkill and it is untested too!.
But basically I used the $feeds_importer->id value for each importer (Twitter and Facebook) as the key into the $export array.
Great module by the way, it helped me a lot when I created my own too.
| Comment | File | Size | Author |
|---|---|---|---|
| feeds_social-defaults-inc.patch | 4.27 KB | Michael Zetterberg fd. Lopez |
Comments
Comment #1
serbanghita commented@Michael Lopez - you are right, i've changed the array keys. Now the module will not conflict. Thanks for pointing this out!
Comment #2
serbanghita commented