Skip to content

Commit

Permalink
#388142 by Dave Reid: Added organic groups integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
davereid committed Mar 2, 2009
1 parent 00511fe commit 432eb93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions feedburner.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,14 @@ function _feedburner_get_feed_list($category = 'site', $options = array()) {
unset($query);
}

// Organic groups
if (($category == 'all' || $category == 'organic groups') && module_exists('og')) {
$query = db_query("SELECT nid, title FROM {og}");
while ($group = db_fetch_object($query)) {
$feeds[] = array('path' => 'node/'. $group->nid .'/feed', 'description' => $group->title);
}
}

// Merge FeedBurner feed data into list
// TODO: Fetch FeedBurner feeds from FeedManagement API
if ($category == 'feedburner' || $options['feedburner']) {
Expand Down
1 change: 1 addition & 0 deletions feedburner.module
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ function _feedburner_get_feed_categories() {
'site' => array('default' => TRUE),
'blogs' => array('module' => 'blog'),
'taxonomy' => array('module' => 'taxonomy'),
'organic groups' => array('module' => 'og'),
//'views' => array('module' => 'views'),
);
}
Expand Down

0 comments on commit 432eb93

Please sign in to comment.