Even if #715146: Convert common syndication parser library to a class is abandoned basically, we can improve slightly the pluggability of the Common Syndication parser.
Even if #715146: Convert common syndication parser library to a class is abandoned basically, we can improve slightly the pluggability of the Common Syndication parser.
Comments
Comment #1
aron novakComment #2
sardara commentedWith the patch provided in #1 I get a type hint error because
_parser_common_syndication_RSS20_parse()is passing the $news variable which has been casted to array at that point. I'm providing a new patch to handle that.Comment #3
hmdnawaz commentedUpdated the patch for the latest 7.x-2.x version.
Comment #5
hmdnawaz commentedComment #6
hmdnawaz commentedPatch for version
7.x-2.0-beta4Comment #7
megachriz@hmdnawaz
Would you like to add automated tests for this feature as well? The tests would need to cover that an item is alterable through the hook
hook_common_syndication_parser_item_alter()and that the hook gets invoked for each feed type (rss, atom, rdf).To cover this:
In feeds/tests/feeds there are files for each feed type to parse.
Comment #8
bluegeek9 commentedComment #10
bluegeek9 commentedUnfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.