Add first attachment as enclosure to RSS feeds

spottybones - October 2, 2006 - 19:29
Project:Attachment
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This patch ports RSS enclosure support from the upload.module to the attachment.module. The first attached file that is neither hidden nor deleted will be included as an enclosure when the node is syndicated via RSS. The patch applies cleanly to the current cvs or 4.7.0 branches.

AttachmentSize
attachment.module.rss-enclosure.patch1.28 KB

#1

drewish - October 3, 2006 - 15:16

that looks pretty good but how about just having it return the values inside the foreach loop as soon as you find a non-deleted, visible file?

 
 

Drupal is a registered trademark of Dries Buytaert.