function biblio_filter_feed in Bibliography Module 6
Same name and namespace in other branches
- 6.2 biblio.module \biblio_filter_feed()
- 7 biblio.module \biblio_filter_feed()
- 7.2 biblio.module \biblio_filter_feed()
This function creates a feed from a filter type query (i.e. biblio/author/jones)
Parameters
$query: the SQL string to be used in the call to db_query
$terms: the terms that are used to replace any place holders in the query
$rss_info: an array which contains the title,link and description info for the rss feed
1 call to biblio_filter_feed()
File
- ./
biblio.module, line 1890
Code
function biblio_filter_feed($query, $terms = NULL, $rss_info = NULL) {
$base = variable_get('biblio_base', 'biblio');
$channel['title'] = $rss_info['title'];
$channel['link'] = url($base . $rss_info['link'], array(
'absolute' => TRUE,
));
$channel['description'] = $rss_info['description'];
$nids = array();
$result = db_query($query, $terms);
while ($row = db_fetch_object($result)) {
$nids[] = $row->nid;
}
node_feed($nids, $channel);
}