So that it includes the name of my site as well
I want the change to go from TITLE to "SITE NAME | TITLE" in the feed
I was able to do it in the ATOM module but cannot figure out how to do it for the RSS 2.0 feed. Here's the code as it appears in node.module for 4.6 (which is dramatically different from 4.5)
/**
* A generic function for generating RSS feeds from a set of nodes.
*
* @param $nodes
* An object as returned by db_query() which contains the nid field.
* @param $channel
* An associative array containing title, link, description and other keys.
* The link should be an absolute URL.
*/
function node_feed($nodes = 0, $channel = array()) {
global $base_url, $locale;
if (!$nodes) {
$nodes = db_query_range(db_rewrite_sql('SELECT n.nid FROM {node} n WHERE n.promote = 1 AND n.status = 1 ORDER BY n.created DESC'), 0, 15);
}
while ($node = db_fetch_object($nodes)) {
// Load the specified node:
$item = node_load(array('nid' => $node->nid));
$link = url("node/$node->nid", NULL, NULL, 1);
// Filter and prepare node teaser
if (node_hook($item, 'view')) {
node_invoke($item, 'view', TRUE, FALSE);
}
else {
$item = node_prepare($item, TRUE);
}
// Allow modules to change $node->teaser before viewing.
node_invoke_nodeapi($item, 'view', true, false);
// Allow modules to add additional item fields