function blog_feed_user
blog_feed_user($account)
Menu callback; displays an RSS feed containing recent blog entries of a given user.
File
- modules/blog/blog.pages.inc, line 90
- Page callback file for the blog module.
Code
function blog_feed_user($account) { $nids = db_select('node', 'n') ->fields('n', array('nid', 'created')) ->condition('type', 'blog') ->condition('uid', $account->uid) ->condition('status', 1) ->orderBy('created', 'DESC') ->range(0, variable_get('feed_default_items', 10)) ->addTag('node_access') ->execute() ->fetchCol(); $channel['title'] = t("!name's blog", array('!name' => format_username($account))); $channel['link'] = url('blog/' . $account->uid, array('absolute' => TRUE)); node_feed($nids, $channel); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!blog!blog.pages.inc/function/blog_feed_user/7.x