Index: aggregator.module =================================================================== RCS file: /cvs/drupal/drupal/modules/aggregator.module,v retrieving revision 1.246 diff -u -w -b -r1.246 aggregator.module --- aggregator.module 11 Aug 2005 13:12:44 -0000 1.246 +++ aggregator.module 22 Aug 2005 21:17:40 -0000 @@ -1020,8 +1020,13 @@ /** * Menu callback; generates an OPML representation of all feeds. */ -function aggregator_page_opml() { +function aggregator_page_opml($cid = NULL) { + if (is_numeric($cid)) { + $result = db_query('SELECT f.title, f.url FROM {aggregator_category_feed} ac JOIN {aggregator_feed} f on f.fid = ac.fid WHERE ac.cid = %d ORDER BY title', $cid); + } + else { $result = db_query('SELECT * FROM {aggregator_feed} ORDER BY title'); + } $output = "\n"; $output .= "\n";