Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.656 diff -u -r1.656 node.module --- modules/node/node.module 10 Jul 2006 19:27:52 -0000 1.656 +++ modules/node/node.module 13 Jul 2006 11:25:59 -0000 @@ -1433,6 +1433,15 @@ node_invoke_nodeapi($item, 'view', $teaser, FALSE); } + // Allow modules to add additional item fields and/or modify $item + $extra = node_invoke_nodeapi($item, 'rss item'); + $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'FALSE')))); + foreach ($extra as $element) { + if ($element['namespace']) { + $namespaces = array_merge($namespaces, $element['namespace']); + } + } + // Prepare the item description switch ($item_length) { case 'fulltext': @@ -1449,14 +1458,6 @@ break; } - // Allow modules to add additional item fields - $extra = node_invoke_nodeapi($item, 'rss item'); - $extra = array_merge($extra, array(array('key' => 'pubDate', 'value' => date('r', $item->created)), array('key' => 'dc:creator', 'value' => $item->name), array('key' => 'guid', 'value' => $item->nid . ' at ' . $base_url, 'attributes' => array('isPermaLink' => 'FALSE')))); - foreach ($extra as $element) { - if ($element['namespace']) { - $namespaces = array_merge($namespaces, $element['namespace']); - } - } $items .= format_rss_item($item->title, $link, $item_text, $extra); }