blog_feed_last
- Versions
- 4.6 – 7
blog_feed_last()
Displays an RSS feed containing recent blog entries of all users.
Code
modules/blog.module, line 89
<?php
function blog_feed_last() {
$result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.teaser, n.created, u.name, u.uid FROM {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), 0, 15);
$channel['title'] = variable_get('site_name', 'drupal') .' blogs';
$channel['link'] = url('blog', NULL, NULL, TRUE);
$channel['description'] = $term->description;
node_feed($result, $channel);
}
?>Login or register to post comments 