Jan 15 2010

Planet , Drupal Style

So when you setup an aggregator there's this one thing you miss from a regular planet ...the list of blogs with their individual Feeds.

I wanted to use this for again and realized I don't know where I got this snippet from or if I wrote it myselve or whatever .. but I do realize that unless I document it here I won't be able to point other people to it again :) So just create a block like this one :

  1. <?php
  4. $subscriptions = db_query('SELECT title,link,url FROM {aggregator_feed} ORDER BY title');
  5. while ($list = db_fetch_object($subscriptions)) {
  6. print "<a href=\"$list->link\">$list->title</a> (<a href=\"$list->url\">feed</a>)<br>\n";
  8. }
  10. ?>