From 1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 18 Sep 2005 10:37:57 +0000 Subject: - Patch #3986 by James (and Boris :)):consolidated all feed-related settings in one place. * adds a "feed settings" section to admin/settings where 2 new settings are introduced: * number of items per feed * default length of feed descriptions (title only, teaser, full) * patches all of core to obey the above - including the new aggregator (out) feeds * adds support for adding namespaces in _nodeapi('rss item') - which means things like iTunes RSS and yahoo's media rss can be implemented by the appropriate modules (i.e. audio.module) * includes some additional info in the default node feed - specifically the element (links directly to comments) - and dc:creator - to show node author information. --- modules/comment.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index be05f3c9d..261743094 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -284,6 +284,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) { case 'search result': $comments = db_result(db_query('SELECT comment_count FROM {node_comment_statistics} WHERE nid = %d', $node->nid)); return format_plural($comments, '1 comment', '%count comments'); + case 'rss item': + return array(array('key' => 'comments', 'value' => url('node/'.$node->nid, NULL, 'comment', TRUE))); } } -- cgit v1.2.3