diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-18 10:37:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-18 10:37:57 +0000 |
commit | 1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e (patch) | |
tree | ef6695943a618af4053a7cd18e0114e3eb796227 /modules/comment.module | |
parent | ceb9859d70080b67ab2a46ee93528f0813d734a2 (diff) | |
download | brdo-1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e.tar.gz brdo-1dc53d9761fbf256f59e1d9cd07741a2f8e9d27e.tar.bz2 |
- 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.
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 2 |
1 files changed, 2 insertions, 0 deletions
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))); } } |