function feedapi_export_opml in FeedAPI 6
Same name and namespace in other branches
- 5 feedapi.module \feedapi_export_opml()
Generates an OPML representation of all feeds.
1 string reference to 'feedapi_export_opml'
- feedapi_menu in ./
feedapi.module - Implementation of hook_menu().
File
- ./
feedapi.opml.inc, line 86 - OPML import and export for FeedAPI
Code
function feedapi_export_opml() {
$result = db_query(db_rewrite_sql('SELECT n.title, f.url FROM {feedapi} f INNER JOIN {node} n ON f.nid = n.nid ORDER BY n.title ASC'));
$feeds = array();
while ($feed = db_fetch_object($result)) {
$feeds[] = $feed;
}
return theme('feedapi_export_opml', $feeds);
}