07-26-2023, 10:53 PM
Trying to modify the RSS feeds created by Views module in Drupal.
Since there are no 'theme_' hooks for the RSS feeds (rightfully as XML is theme-less), I need an alternate way to modify the fields that are output into the RSS, preferably using template.php if possible.
<code>node_feed()</code> is what collects the nodes, creates the additional fields, and then calls <code>format_rss_item()</code>.
Specifically, we need to remove the <code>dc:creator</code> element from the <code>$extra</code> array created in <code>node_feed()</code>
Since there are no 'theme_' hooks for the RSS feeds (rightfully as XML is theme-less), I need an alternate way to modify the fields that are output into the RSS, preferably using template.php if possible.
[To see links please register here]
looks promising as that is where each row is created, but it doesn't<code>node_feed()</code> is what collects the nodes, creates the additional fields, and then calls <code>format_rss_item()</code>.
Specifically, we need to remove the <code>dc:creator</code> element from the <code>$extra</code> array created in <code>node_feed()</code>