extra data necessary for extra_RSS_fields

kvantomme - December 1, 2008 - 17:12
Project:Views
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Extra RSS fields, a module that outputs chosen fields from a CCK node in an RSS feed, requires a little extra data in the nodeapi hook:

- $extra = node_invoke_nodeapi($item, 'rss item');
+ $extra = node_invoke_nodeapi($item, 'rss item', $view = '');

I imagine that passing through the $view variable in the nodeapi hook should also be useful for other modules out there

a diff is also attached

AttachmentSize
views_RSS.diff955 bytes

#1

drewish - December 2, 2008 - 03:01

I'm not sure that it's a good idea to be sticking non-specified values into hook_nodeapi()... even thought $a3 and $a4 are unspecified for $op = 'rss item'.

 
 

Drupal is a registered trademark of Dries Buytaert.