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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| attachment.module.rss-enclosure.patch | 1.28 KB |

#1
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?