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.
By diamondlook on
I'm trying to figure out where in the module I could write a special case concerning a certain feed. I would like to be able to write my own php code to edit the feed. (For example, to put a teaser description in after Title) I know how to write the code to change the feed, but not sure where in the module to add too. Something like
if ($feed_url == http://domain.com/rss.xml)
{
// edit the $feed_string;
}
Comments
Feeds Processor
I would think you would want to write this as a Feeds Processor in its own module so you can still update the Feeds module. There are some other modules that are Feeds Processors here: http://drupal.org/node/856644. Basing your code off of one of those might be a good way to get started.